? Idk some kinda ENDIF syntax error problem (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Idk some kinda ENDIF syntax error problem

  • #1 ✎ 147 ChaseCZ Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Yo I haven't opened smilebasic in a long time and i got a problem. Here on this pic whenever i run the code it just gives me a syntax error on line 110, if i change it to just END, it gives me a syntax error on line 118 and if do the same on the line 118 then it gives me a WEND without WHILE error even though both are there... Idk i didn't do anything in smilebasic for a long time and i feel like i forgot a lot of things Posted
  • #2 ✎ 170 Nathaniel Spring 2017 Contest Winner I won the SmileBASIC Source Spring 2017 Contest! Programming Contest Staff Pick "Your program is one of our favorites!" - Staff Achievements Final(?) Contest Winner I won the (possibly) final SmileBASIC Source Contest! October 2018 Programming Contest If you start a FOR loop inside an IF statement, you must end it with NEXT before it reaches ENDIF. I think you're also missing an ENDIF near WAIT 1. Posted
  • #3 ✎ 147 ChaseCZ Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself
    If you start a FOR loop inside an IF statement, you must end it with NEXT before it reaches ENDIF. I think you're also missing an ENDIF near WAIT 1.
    Oh yeah so i must put the NEXT which is at the bottom above ENDIF and yeah idk for sure but i think there already is ENDIF below WAIT 1
    Posted Edited by ChaseCZ
  • #4 ✎ 417 kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself Keywords that start and end must not intersect, but only enclose code. Tabbing in when you go into one of these 'blocks' simplifies knowing whether or not you've already given the ending keyword. example: WHILE 1 IF what THEN FOR I=0 TO yeet ?"your mom",I NEXT ENDIF WEND Posted