I tried this:
beep();
while(firenumber<5){wait(1);}
beep();
The first beep comed, but not the second
And how I said, I made a digit on a panel for the variable "firenumber", and it counts fine...
EDIT:
I tried this:
beep();
while(firenumber<5){beep();wait(-1);} //beep every second
beep();beep();beep();beep(); //make four fast beeps
Ingame, it beeped first, then it beeped every second.
But when I extinguished one fire, it stopped beeping, but not four fast beeps. The whole function got stuck (maybe) It's so confusing :S