10-10-2010, 09:13 PM
How do I make an if statement to check if the door is not locked, then don't display message?
this is what I got.
But when i try to load my level, it says:
Unexpected token 'if'
this is what I got.
Code:
if (GetSwingDoorLocked("door1") == true)
{
void AddMessage1(string &in entity)
{
AddDebugMessage("fgsfds",false);
SetMessage("Messages", "ExitDoorMessage", 0);
}
}
But when i try to load my level, it says:
Unexpected token 'if'