Quote:
Originally Posted by Mike Garber
Yeah I thought of that,
but hey, I just thought of something else (Yes I always seem to find solutions to my problems when I ask for It..)
It's made like this;
pawn Code:
forward Timer(playerid);
SetTimerEx("Timer",milliseconds,0,"i",playerid);
So would KillTimer(Timer(playerid)); stop it for that player only?
It compiles fine so, I just wondered.
|
No. KillTimer will try to kill the ID of the timer, what's happening with
pawn Code:
KillTimer(Timer(playerid));
Is that it's simply trying to kill the return value of Timer(playerid); as the ID of the timer. So no, you need to use a variable to store the timer ID in for later killing.