03.04.2012, 18:17
try using this function:
example: SafeKilltimer(rl_ServerUpdate);
It will check whether the timer actually exists, otherwise you could kill timers which are not the one you wanted to kill.
Quote:
#define SafeKillTimer(%0);\ if(%0 != 0)\ {\ KillTimer(%0);\ %0 = 0;\ } |
It will check whether the timer actually exists, otherwise you could kill timers which are not the one you wanted to kill.