プレイ日記
NIC NightlyTerror
*sniff* im crying jk does anyone know why i cant goto @legendarymenu
2そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
@LEGENDARYMENU isn't a defined label in your program.
2そうだね
プレイ済み
返信[2]
親投稿
NIC NightlyTerror
?
0そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
That means that it doesn't exist in your program. You have to write @LEGENDARYMENU by itself somewhere else in your program to define it.
2そうだね
プレイ済み
返信[4]
親投稿
NIC NightlyTerror
like this in the screen shot
1そうだね
プレイ済み
返信[5]
親投稿
Oscar PwnageBlock
Exactly!
2そうだね
プレイ済み
返信[6]
親投稿
NIC NightlyTerror
yay thank you oscar and please follow me
1そうだね
プレイ済み
返信[7]
親投稿
vmac ChillV
Yeah, and goto is a good command for making loops (loops let you make a program perform tasks of lines of code over and over again).
2そうだね
未プレイ
返信[8]
親投稿
Oscar PwnageBlock
@vmac Actually, GOTOs are not all that great when making loops, or code in general. They can cause what is known as 'spaghetti code', which is code that's very hard to read and maintain. If you want to make loops, stick to loop structures like WHILE...WEND, REPEAT...UNTIL and FOR...NEXT.
4そうだね
プレイ済み
返信[9]
親投稿
Aiden crayzeefun3
"GOTO @LEGENDARYMENU" only works if you have "@LEGENDARYMENU" in the same program. The command you used resumes the program at "@LEGENDARYMENU"
1そうだね
プレイ済み
返信[10]
親投稿
NIC NightlyTerror
thx bro
1そうだね
プレイ済み
返信[11]
親投稿
vmac ChillV
@Oscar Yeah, I'm a beginner in programming so I use them as a quick way to make my simple programs or for experiementation. However, from playing Human Resource Machine and having to deal with the JUMP command a lot, I can see how GOTO commands can result in some rather ridiculous looking code in more complex programs.
0そうだね
プレイ済み