Windows Help me

X

xtrapnation

Guest
its me again, hope you guys can help me again :D . I already made everything, but this thing makes it so that i cant even test and open the game becouse its a "FATAL ERROR".
/// @desc Draw black bars
if (mode != TRANS_MODE_OFF) <---- is supposed to be a enum but it becomes a variable
{
draw_set_color(c_black);
draw_rectangle(0,0,w,percent*h_half,false);
draw_rectangle(0,h,w,h-(percent*h_half),false);
}

draw_set_color(c_white);
draw_text(50,50,string(percent));
 

TheouAegis

Member
When you make an enum, you do so like
Code:
enum pets {
dog,
cat,
bird,
fish
}
When you want to refer to an enum, you have to prefix it with the group's name.
Code:
my_pet = pets.dog;
 
Top