15.01.2015, 19:53
Hi,
I set into variable a settimerex id
and then in public
Problem is that when this public is called after some time and if this check (i put this onplayerconnect) will be checked like that
Then timer get killed important is that how much time i can kill timer after he excecute in public, callback ? because i have more timers in gamemod'e in proccess during time.
I set into variable a settimerex id
Код:
if( variable[ playerid ] == -1 ) { variable[ playerid ] = settimerex(....); } else { KillTimer(variable[ playerid ] ); variable[ playerid ] = -1; }
Код:
forward whentimerex(); public whentimerex() { // some code variable[ playerid ] = -1; }
Код:
else { }