プレイ日記
Kitcat14 MedleyWolf
Could someone explain whats wrong with my code at 127? I've been changing this same portion for the last 15 minutes and all I've gotten was a line of errors :/
13そうだね
プレイ済み
返信[1]
親投稿
☆CodeZeяo☆ Code-Zero-666
Back space the two lines below it and make it one line exe: if b and stuff then do stuff else stuff
1そうだね
プレイ済み
返信[2]
親投稿
☆CodeZeяo☆ Code-Zero-666
Write it like this also If b>5 then goto @ocs Goto @Loop Put a wait or vsync 1 right after @loop and the cls to make the loop work right
1そうだね
プレイ済み
返信[3]
親投稿
☆CodeZeяo☆ Code-Zero-666
Try it like this, sorry I got confused for a minute.
1そうだね
プレイ済み
返信[4]
親投稿
Kitcat14 MedleyWolf
Thanks for the help!
1そうだね
プレイ済み
返信[5]
親投稿
☆CodeZeяo☆ Code-Zero-666
No problem :) If you need anything else lemme know :)
1そうだね
プレイ済み
返信[6]
親投稿
V360 TheV360
Just for reference: There are 2 kinds of if statements: single-line and multi-line. Single-line if statements look like this: IF I>3 THEN:PRINT "Hello, world!": ELSE:PRINT "No" Multi-line if statements look like this: IF I>3 THEN PRINT "Hello, world!" ELSE PRINT "No" ENDIF (note the ENDIF) You can also use ENDIF in single-line if statements while nesting them. (continued)
1そうだね
プレイ済み
返信[7]
親投稿
V360 TheV360
(continued) IF I>3 THEN:PRINT "Hello, world!":IF I>4 THEN:PRINT "Sample text":ENDIF:PRINT "Hi" (you don't need to put an ENDIF on your if statement unless you want to put something after the if) This is completely okay: IF I>3 THEN PRINT "A" IF I>4 THEN:PRINT "B" ENDIF This is not okay (afaik, but it looks awful and you shouldn't use it): IF I>3 THEN:PRINT "A":IF I>4 THEN PRINT "B" ENDIF
1そうだね
プレイ済み