• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

GML if else statement error

G

giancoulas

Guest
not sure what i am doing wrong here i tried making the alarm its own object because i want it to do this for only certain rooms but it did not work i am not trying to do it in the player object just to see if i can get it working i also been trying to set it up so the alarm shows up in the camera so the player can see the count down

yes i have looked in the manaual idk if i just cant find it or im just not understand what i am reading any help would be much apreciated thank you

upload_2019-3-25_23-15-44.png
 

TsukaYuriko

šŸŒ 
Forum Staff
Moderator
An else statement alone will not be able to evaluate an expression. You are attempting to do this anyway at the marked line.

You would need an else if statement for that - that is, an else statement followed by an if statement.
 
G

giancoulas

Guest
An else statement alone will not be able to evaluate an expression. You are attempting to do this anyway at the marked line.

You would need an else if statement for that - that is, an else statement followed by an if statement.


ah ok thank you i managed to figure it out and clean it a bit only problem now the my draw event is not working correctly i have it at 5 seconds for testing purposes but its showing 1800 and not counting down

upload_2019-3-25_23-45-21.png
upload_2019-3-25_23-45-58.png
 
Top