quick question
Posted: Thu Dec 29, 2011 10:47 pm
okay, so I have it where in a game a value of a command is 2 which is how much you can use it. When you click this command it goes to 1, and then 0. After 0 it goes to negatives which I dont want. I put the code under the command in Create Actor
All that does is disable the event even when the value of the command is higher than 0.
What is wrong with that code?
- Code: Select all
if(command<=0);
{
EventDisable("command", EVENTALL);
}
All that does is disable the event even when the value of the command is higher than 0.
What is wrong with that code?