**dopeheaddude wrote:**

pgrmZGA:

While Ã¡MYS(6)=3

Output(Ã¡MYS(3),Ã¡MYS(4),"Ã

If sub(Str1,Ã¡MYS(5),1)Ã¸" ":Then:prgmZCH:End

getKeyÃ¼Ã¡MYS(7)

If Ã¡MYS(7)=24:Then

If Ã¡MYS(4)=1:Then

Ã¡MYS(2)-1Ã¼Ã¡MYS(2):Ã¡MYS(5)+15Ã¼Ã¡MYS(5):15+Ã¡MYS(4)Ã¼Ã¡MYS(4)

prgmZTOWN1

End

If Ã¡MYS(4)>1:Then

If sub(Str1,Ã¡MYS(5)-1,1)Ã¸"X":Then

Output(Ã¡MYS(3),Ã¡MYS(4),"

Ã¡MYS(4)-1Ã¼Ã¡MYS(4):Ã¡MYS(5)-1Ã¼Ã¡MYS(5)

End:End:End

If Ã¡MYS(7)=25:Then

If Ã¡MYS(3)=1:Then

Ã¡MYS(1)-1Ã¼Ã¡MYS(1):Ã¡MYS(5)+112Ã¼Ã¡MYS(5):Ã¡MYS(3)+7Ã¼Ã¡MYS(3)

prgmZTOWN1

End

If Ã¡MYS(3)>1:Then

If sub(Str1,Ã¡MYS(5)-16,1)Ã¸"X":Then

Output(Ã¡MYS(3),Ã¡MYS(4),"

Ã¡MYS(3)-1Ã¼Ã¡MYS(3):Ã¡MYS(5)-16Ã¼Ã¡MYS(5)

End:End:End

If Ã¡MYS(7)=26:Then

If Ã¡MYS(4)=16:Then

Ã¡MYS(2)+1Ã¼Ã¡MYS(2):Ã¡MYS(5)-15Ã¼Ã¡MYS(5):Ã¡MYS(4)-15Ã¼Ã¡MYS(4)

prgmZTOWN1

End

If Ã¡MYS(4)<16:Then

If sub(Str1,Ã¡MYS(5)+1,1)Ã¸"X":Then

Output(Ã¡MYS(3),Ã¡MYS(4),"

Ã¡MYS(4)+1Ã¼Ã¡MYS(4):Ã¡MYS(5)+1Ã¼Ã¡MYS(5)

End:End:End

If Ã¡MYS(7)=34:Then

If Ã¡MYS(3)=8:Then

Ã¡MYS(1)+1Ã¼Ã¡MYS(1):Ã¡MYS(5)-112Ã¼Ã¡MYS(5)

Ã¡MYS(3)-7Ã¼Ã¡MYS(3)

prgmZTOWN1

End

If Ã¡MYS(3)<8:Then

If sub(Str1,Ã¡MYS(5)+16,1)Ã¸"X":Then

Output(Ã¡MYS(3),Ã¡MYS(4),"

Ã¡MYS(3)+1Ã¼Ã¡MYS(3):Ã¡MYS(5)+16Ã¼Ã¡MYS(5)

End:End:End

End

Works perfectly.

When I add this code after "getKeyÃ¼Ã¡MYS(7)", it goes wrong:

If Ã¡MYS(7)=11:Then

ClrHome

Menu("Menu","Stats",1,"Reset",3,"Quit",4,"Return",5)

Lbl 1

If Ã¡MYS(7)=11:Then

ClrHome

Output(1,1,"HPÃº"

Output(1,6,Ã¡STAT(1)

Output(1,9,"/"

Output(1,12,Ã¡STAT(5)

Output(2,1,"MPÃº"

Output(2,6,Ã¡STAT(2)

Output(2,9,"/"

Output(2,12,Ã¡STAT(6)

Output(3,1,"STRÃº"

Output(3,6,Ã¡STAT(3)

Output(4,1,"DEFÃº"

Output(4,6,Ã¡STAT(4)

Output(5,1,"EXPÃº"

Output(5,6,Ã¡MYS2(4)

Output(5,9,"/"

Output(5,12,Ã¡MYS2(5)

Pause :End

Lbl 3

If Ã¡MYS(7)=11:Then

prgmA:End

Lbl 4

If Ã¡MYS(7)=11:Then

Stop:End

Lbl 5

If Ã¡MYS(7)=11:Then

End

prgmA is the game. I run it, then it runs again, and again. It seems to be reading Lbl 3, right?

I never hit a button. I never hit Y= button, therefore Ã¡MYS(7) is not 11.

How can this be happening? How can I fix it?

While Ã¡MYS(6)=3

Output(Ã¡MYS(3),Ã¡MYS(4),"Ã

If sub(Str1,Ã¡MYS(5),1)Ã¸" ":Then:prgmZCH:End

getKeyÃ¼Ã¡MYS(7)

If Ã¡MYS(7)=24:Then

If Ã¡MYS(4)=1:Then

Ã¡MYS(2)-1Ã¼Ã¡MYS(2):Ã¡MYS(5)+15Ã¼Ã¡MYS(5):15+Ã¡MYS(4)Ã¼Ã¡MYS(4)

prgmZTOWN1

End

If Ã¡MYS(4)>1:Then

If sub(Str1,Ã¡MYS(5)-1,1)Ã¸"X":Then

Output(Ã¡MYS(3),Ã¡MYS(4),"

Ã¡MYS(4)-1Ã¼Ã¡MYS(4):Ã¡MYS(5)-1Ã¼Ã¡MYS(5)

End:End:End

If Ã¡MYS(7)=25:Then

If Ã¡MYS(3)=1:Then

Ã¡MYS(1)-1Ã¼Ã¡MYS(1):Ã¡MYS(5)+112Ã¼Ã¡MYS(5):Ã¡MYS(3)+7Ã¼Ã¡MYS(3)

prgmZTOWN1

End

If Ã¡MYS(3)>1:Then

If sub(Str1,Ã¡MYS(5)-16,1)Ã¸"X":Then

Output(Ã¡MYS(3),Ã¡MYS(4),"

Ã¡MYS(3)-1Ã¼Ã¡MYS(3):Ã¡MYS(5)-16Ã¼Ã¡MYS(5)

End:End:End

If Ã¡MYS(7)=26:Then

If Ã¡MYS(4)=16:Then

Ã¡MYS(2)+1Ã¼Ã¡MYS(2):Ã¡MYS(5)-15Ã¼Ã¡MYS(5):Ã¡MYS(4)-15Ã¼Ã¡MYS(4)

prgmZTOWN1

End

If Ã¡MYS(4)<16:Then

If sub(Str1,Ã¡MYS(5)+1,1)Ã¸"X":Then

Output(Ã¡MYS(3),Ã¡MYS(4),"

Ã¡MYS(4)+1Ã¼Ã¡MYS(4):Ã¡MYS(5)+1Ã¼Ã¡MYS(5)

End:End:End

If Ã¡MYS(7)=34:Then

If Ã¡MYS(3)=8:Then

Ã¡MYS(1)+1Ã¼Ã¡MYS(1):Ã¡MYS(5)-112Ã¼Ã¡MYS(5)

Ã¡MYS(3)-7Ã¼Ã¡MYS(3)

prgmZTOWN1

End

If Ã¡MYS(3)<8:Then

If sub(Str1,Ã¡MYS(5)+16,1)Ã¸"X":Then

Output(Ã¡MYS(3),Ã¡MYS(4),"

Ã¡MYS(3)+1Ã¼Ã¡MYS(3):Ã¡MYS(5)+16Ã¼Ã¡MYS(5)

End:End:End

End

Works perfectly.

When I add this code after "getKeyÃ¼Ã¡MYS(7)", it goes wrong:

If Ã¡MYS(7)=11:Then

ClrHome

Menu("Menu","Stats",1,"Reset",3,"Quit",4,"Return",5)

Lbl 1

If Ã¡MYS(7)=11:Then

ClrHome

Output(1,1,"HPÃº"

Output(1,6,Ã¡STAT(1)

Output(1,9,"/"

Output(1,12,Ã¡STAT(5)

Output(2,1,"MPÃº"

Output(2,6,Ã¡STAT(2)

Output(2,9,"/"

Output(2,12,Ã¡STAT(6)

Output(3,1,"STRÃº"

Output(3,6,Ã¡STAT(3)

Output(4,1,"DEFÃº"

Output(4,6,Ã¡STAT(4)

Output(5,1,"EXPÃº"

Output(5,6,Ã¡MYS2(4)

Output(5,9,"/"

Output(5,12,Ã¡MYS2(5)

Pause :End

Lbl 3

If Ã¡MYS(7)=11:Then

prgmA:End

Lbl 4

If Ã¡MYS(7)=11:Then

Stop:End

Lbl 5

If Ã¡MYS(7)=11:Then

End

prgmA is the game. I run it, then it runs again, and again. It seems to be reading Lbl 3, right?

I never hit a button. I never hit Y= button, therefore Ã¡MYS(7) is not 11.

How can this be happening? How can I fix it?