Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   [WIP]Reward System and Games (http://www.mysidiaadoptables.com/forum/showthread.php?t=1736)

PTGigi 01-22-2011 09:08 PM

Quote:

Originally Posted by fadillzzz (Post 13239)
@pokemontrainergigi
Yes! you're right!
It should be like this right?
PHP Code:

<img src='".$randomImage($items)."' alt='Prize'></div>"; 


Yes like that :meow: Thanks XD I don;t know why this forum likes to change what I type :ohnoes: This is the third time :catfish:

Tequila 01-22-2011 09:54 PM

Quote:

Originally Posted by fadillzzz (Post 13239)
@pokemontrainergigi
Yes! you're right!
It should be like this right?
PHP Code:

<img src='".$randomImage($items)."' alt='Prize'></div>"; 

@enddayne
for the tic tac toe game, you forgot about the buttons!
HTML Code:

<FORM NAME="tic">
<INPUT TYPE="button" NAME="sqr1" class="tictac" value="    " onClick="if(document.tic.sqr1.value == '    ' && turn == 0 && mode == 1) {document.tic.sqr1.value = ' X '; sqr1T = 1; turn = 1; vari(); check();} else if(document.tic.sqr1.value == '    ' && turn == 1 && mode == 2) {document.tic.sqr1.value = ' X '; sqr1T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr1.value == '    ' && turn == 0 && mode == 2) {document.tic.sqr1.value = ' O '; sqr1T = 1; turn = 1; vari(); player1Check()} drawCheck()">
<INPUT TYPE="button" NAME="sqr2" class="tictac" value="    " onClick="if(document.tic.sqr2.value == '    ' && turn == 0 && mode == 1) {document.tic.sqr2.value = ' X '; sqr2T = 1; turn = 1; vari(); check();} else if(document.tic.sqr2.value == '    ' && turn == 1 && mode == 2) {document.tic.sqr2.value = ' X '; sqr2T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr2.value == '    ' && turn == 0 && mode == 2) {document.tic.sqr2.value = ' O '; sqr2T = 1; turn = 1; vari(); player1Check()} drawCheck()">
<INPUT TYPE="button" NAME="sqr3" class="tictac" value="    " onClick="if(document.tic.sqr3.value == '    ' && turn == 0 && mode == 1) {document.tic.sqr3.value = ' X '; sqr3T = 1; turn = 1; vari(); check();} else if(document.tic.sqr3.value == '    ' && turn == 1 && mode == 2) {document.tic.sqr3.value = ' X '; sqr3T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr3.value == '    ' && turn == 0 && mode == 2) {document.tic.sqr3.value = ' O '; sqr3T = 1; turn = 1; vari(); player1Check()} drawCheck()"><br />
<INPUT TYPE="button" NAME="sqr4" class="tictac" value="    " onClick="if(document.tic.sqr4.value == '    ' && turn == 0 && mode == 1) {document.tic.sqr4.value = ' X '; sqr4T = 1; turn = 1; vari(); check();} else if(document.tic.sqr4.value == '    ' && turn == 1 && mode == 2) {document.tic.sqr4.value = ' X '; sqr4T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr4.value == '    ' && turn == 0 && mode == 2) {document.tic.sqr4.value = ' O '; sqr4T = 1; turn = 1; vari(); player1Check()} drawCheck()">
<INPUT TYPE="button" NAME="sqr5" class="tictac" value="    " onClick="if(document.tic.sqr5.value == '    ' && turn == 0 && mode == 1) {document.tic.sqr5.value = ' X '; sqr5T = 1; turn = 1; vari(); check();} else if(document.tic.sqr5.value == '    ' && turn == 1 && mode == 2) {document.tic.sqr5.value = ' X '; sqr5T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr5.value == '    ' && turn == 0 && mode == 2) {document.tic.sqr5.value = ' O '; sqr5T = 1; turn = 1; vari(); player1Check()} drawCheck()">
<INPUT TYPE="button" NAME="sqr6" class="tictac" value="    " onClick="if(document.tic.sqr6.value == '    ' && turn == 0 && mode == 1) {document.tic.sqr6.value = ' X '; sqr6T = 1; turn = 1; vari(); check();} else if(document.tic.sqr6.value == '    ' && turn == 1 && mode == 2) {document.tic.sqr6.value = ' X '; sqr6T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr6.value == '    ' && turn == 0 && mode == 2) {document.tic.sqr6.value = ' O '; sqr6T = 1; turn = 1; vari(); player1Check()} drawCheck()"><br />
<INPUT TYPE="button" NAME="sqr7" class="tictac" value="    " onClick="if(document.tic.sqr7.value == '    ' && turn == 0 && mode == 1) {document.tic.sqr7.value = ' X '; sqr7T = 1; turn = 1; vari(); check();} else if(document.tic.sqr7.value == '    ' && turn == 1 && mode == 2) {document.tic.sqr7.value = ' X '; sqr7T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr7.value == '    ' && turn == 0 && mode == 2) {document.tic.sqr7.value = ' O '; sqr7T = 1; turn = 1; vari(); player1Check()} drawCheck()">
<INPUT TYPE="button" NAME="sqr8" class="tictac" value="    " onClick="if(document.tic.sqr8.value == '    ' && turn == 0 && mode == 1) {document.tic.sqr8.value = ' X '; sqr8T = 1; turn = 1; vari(); check();} else if(document.tic.sqr8.value == '    ' && turn == 1 && mode == 2) {document.tic.sqr8.value = ' X '; sqr8T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr8.value == '    ' && turn == 0 && mode == 2) {document.tic.sqr8.value = ' O '; sqr8T = 1; turn = 1; vari(); player1Check()} drawCheck()">
<INPUT TYPE="button" NAME="sqr9" class="tictac" value="    " onClick="if(document.tic.sqr9.value == '    ' && turn == 0 && mode == 1) {document.tic.sqr9.value = ' X '; sqr9T = 1; turn = 1; vari(); check();} else if(document.tic.sqr9.value == '    ' && turn == 1 && mode == 2) {document.tic.sqr9.value = ' X '; sqr9T = 1; turn = 0; vari(); player1Check()} else if(document.tic.sqr9.value == '    ' && turn == 0 && mode == 2) {document.tic.sqr9.value = ' O '; sqr9T = 1; turn = 1; vari(); player1Check()} drawCheck()">
</form>


*headdesk* 私は馬鹿だ!

Tequila 01-28-2011 03:24 PM

Still getting an error on reward.php
Quote:

Parse error: syntax error, unexpected T_VARIABLE in /home/enddayne/public_html/devdemo/reward.php on line 123
And the buttons won't click for the tic tac toe game. I'm almost ready to scrap this, but won't. I will instead buy a book or two with my refund.

fadillzzz 01-28-2011 11:41 PM

post the new .php files here, I'll take a look at 'em

Tequila 01-29-2011 03:10 PM

2 Attachment(s)
Sure I'll attach them.

fadillzzz 01-29-2011 07:30 PM

2 Attachment(s)
Okay, I've attached the new files. Try them out and see if they work

Tequila 01-29-2011 07:47 PM

Well the random rewards work now. I'll have to see what you did that I messed up.

I still can't get it to click on the squares for tic tac toe, I'll see if it's Chrome only though.

Tequila 01-29-2011 07:51 PM

We have clicks, but no reactions for them... :eye:

fadillzzz 01-29-2011 08:02 PM

Are you sure you're using the .php files from my previous post?
Because the tictactoe.php is working fine on my site
http://www.adoptapoke.com/tictactoe.php
On your site, the form buttons seem to be missing a lot of code

Tequila 01-29-2011 08:09 PM

hmmm... I'll try to reupload your new version.


All times are GMT -5. The time now is 06:58 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.