• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Random Compile error please help

J

Jack

Guest
Sorry for the error spam, this just happened and I have no idea why

code:

case 0:
room_goto(rm_02);
break;

case 1:
global.kmph+=1;
break;


case 2:
global.volts+=1;
break;

case 3:
if(global.volts>=100)
{
global.volts-=100;
global.kmph+=0.01;
break;
}

Error:

Final Compile...Error : gml_Object_obj_game_button_LeftButtonReleased_1(3) : Token is undefined at CompileStatement
Error : gml_Object_obj_game_button_LeftButtonReleased_1(5) : Break used without context
Error : gml_Object_obj_game_button_LeftButtonReleased_1(7) : Token is undefined at CompileStatement
Error : gml_Object_obj_game_button_LeftButtonReleased_1(9) : Break used without context
Error : gml_Object_obj_game_button_LeftButtonReleased_1(12) : Token is undefined at CompileStatement
Error : gml_Object_obj_game_button_LeftButtonReleased_1(14) : Break used without context
Error : gml_Object_obj_game_button_LeftButtonReleased_1(16) : Token is undefined at CompileStatement
Error : gml_Object_obj_game_button_LeftButtonReleased_1(21) : Break used without context
 
M

maratae

Guest
Try starting by putting a
Code:
switch {}
arround all that.
 
Top