code not working properly

- Code: Select all
if(textNumber==0);
{
EventDisable("Helicopter", EVENTKEYUP);
}
this code should be self explanatory, but when the number of this actor hits 0. i want the key up even to stop making rockets.
ok i added to the code but the sencond part dosent work either now. the whole code is below.
- Code: Select all
if(textNumber==0);
{
EventDisable("Helicopter", EVENTKEYUP);
}
if(textNumber==0);
{
EventDisable("Rocket_Amount", EVENTALL);
}
for this code, when thxt nubmer is zero i dont want it to lower any more. (no -1's and stuff)