LoginLogin

Label loop problem

Root / Programming Questions / [.]

ArkzenCreated:
Please, someone help me. I have no idea why, but this code:
@Q19 ACLS @Q19LOOP B=BUTTON(2) IF B==16 THEN LOCATE 50,23:?" " WAIT 230 GOTO @Q20 IF B==32 THEN LOCATE 50,23:?" " WAIT 430 GOTO @Q20 IF B==128 THEN GOTO @TITLE IF B==64 THEN GOTO @Q18 IF B==1 THEN BGMPAUSE IF B==8 THEN BGMCONT GOTO @Q19LOOP
May or may not be glitched (note: i skipped some PRINT commands so if you need me to i can show it.). It's supposed to just display the text and if you press a certain button it shows text then goes to @Q20 or goes to a different label. But instead, it just sends me to the next label. Help would be VERY appreciated. Thanks.

If you want help, make it easy to help you. Not putting line breaks in your code makes it hard to help you.

Code like
IF B==128 THEN GOTO @TITLE IF B==64 THEN GOTO @Q18
won't work, since the second IF statement is inside the first. They need to be on separate lines.

Code like
IF B==128 THEN GOTO @TITLE IF B==64 THEN GOTO @Q18
won't work, since the second IF statement is inside the first. They need to be on separate lines.
They are on separate lines, i just showed it as if they were on one line. Obviously i wouldn't put the code on the same line.

If you want help, make it easy to help you. Not putting line breaks in your code makes it hard to help you.
Like i said to 12Me21, i DID put the code on separate lines, it's just showed like that on the code. Unless if you were talking about something else.

If you want help, make it easy to help you. Not putting line breaks in your code makes it hard to help you.
Like i said to 12Me21, i DID put the code on separate lines, it's just showed like that on the code. Unless if you were talking about something else.
If what you show is different from how you DID put the code, you're making it more difficult to help you. That's what I'm talking about.

It is slightly different from the actual code. If i could, i would show a picture of the actual code, but currently i can't.

If you want help, make it easy to help you. Not putting line breaks in your code makes it hard to help you.
Like i said to 12Me21, i DID put the code on separate lines, it's just showed like that on the code. Unless if you were talking about something else.
If what you show is different from how you DID put the code, you're making it more difficult to help you. That's what I'm talking about.
I'm not trying to make it harder for you to help me, i just can't show the actual code.

i just can't show the actual code.
What makes you think you can't?

i just can't show the actual code.
What makes you think you can't?
Thank you for attempting to help me, but i found the problem. Somehow some of the code was on the same line. I have no idea how that happened, but thanks anyway.

Also thanks for making me seem like an idiot (though i already am one since i made a simple mistake ). I will ask other questions if i need more help.