Question about timers
#1

Is there any way to check if a timer that has started in OnPlayerEnterCheckpoint as finished when OnPlayerLeaveCheckpoint?
Reply
#2

assign the timer an ID
[code]timer[playerid] = SetTimer...// all the code and shit[/QUOTE]

then later when u kill it
Код:
KillTImer(timer[playerid]);
timer[playerid] = -1;
so now to check the timer if it exists now just use if( timer[playerid] == -1 ) // willl be true if it is = -1

"timer[playerid]" is just a random array variable , u need to have any good name for it and ofc define it above as a global variable

-gl and try
Reply
#3

Thanks, I'm gonna try that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)