ID:141621
 
Code:
blankc3
icon = 'blank.dmi'
layer = 555
var
occupation = 0
Click()
..()
set src in view(usr)
if(src.occupation == 0)
if(turn != usr.pl)
usr << "It's not your turn!"
else
if(usr.pl == "X's")
src.icon = 'x.PNG'
src.occupation = 1
xdiag1 += 1
if(xdiag1 == 3)
win(usr)
xrow3 += 1
if(xrow3 == 3)
win(usr)
xclmn3 += 1
if(xclmn3 == 3)
win(usr)
if(usr.pl == "O's")
src.icon = 'o.PNG'
src.occupation = 1
odiag1 += 1
if(odiag1 == 3)
win(usr)
orow3 += 1
if(orow3 == 3)
win(usr)
oclmn3 += 1
if(oclmn3 == 3)
win(usr)
occupated += 1
if(occupated == 9)
tie()
goto End
Turn()
End
else
usr << "This spot is already occupied."


Problem description:
When a player clicks the block, nothing happens.

Armiris wrote:
Code:
> blankc3
> icon = 'blank.dmi'
> layer = 555
> var
> occupation = 0
> Click()
> ..()
> set src in view(usr)
> if(src.occupation == 0)
> if(turn != usr.pl)
> usr << "It's not your turn!"
> else
> if(usr.pl == "X's")
> src.icon = 'x.PNG'
> src.occupation = 1
> xdiag1 += 1
> if(xdiag1 == 3)
> win(usr)
> xrow3 += 1
> if(xrow3 == 3)
> win(usr)
> xclmn3 += 1
> if(xclmn3 == 3)
> win(usr)
> if(usr.pl == "O's")
> src.icon = 'o.PNG'
> src.occupation = 1
> odiag1 += 1
> if(odiag1 == 3)
> win(usr)
> orow3 += 1
> if(orow3 == 3)
> win(usr)
> oclmn3 += 1
> if(oclmn3 == 3)
> win(usr)
> occupated += 1
> if(occupated == 9)
> tie()
> goto End
> Turn()
> End
> else
> usr << "This spot is already occupied."
>

Problem description:
When a player clicks the block, nothing happens.


Hmmmm. mabie try calling the parent after all the else statement, its just a guess i have some clue on what that is supposed to do but it would be nice if you told us what that is supposed to do
In response to Xxdragonslxx
I tried calling the parent. And it's supposed to run the code after click. Which it does not do.
In response to Armiris
            set src in view(usr)

That line is messing with it. Take it out.
In response to Mizukouken Ketsu
I've already taken it out. It still doesn't work.
In response to Armiris
edit: Wow, this wasn't a code problem at all. The icon was blank, so there was nothing to click.