KillTimerEx
#10

Quote:
Originally Posted by Mike Garber
View Post
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.
Reply


Messages In This Thread
KillTimerEx - by Mike Garber - 08.08.2010, 20:15
Re: KillTimerEx - by (.Aztec); - 08.08.2010, 20:17
Re: KillTimerEx - by Mike Garber - 08.08.2010, 20:19
Re: KillTimerEx - by (.Aztec); - 08.08.2010, 20:21
Re: KillTimerEx - by ivex - 08.08.2010, 20:22
Re: KillTimerEx - by Mike Garber - 08.08.2010, 20:23
Re: KillTimerEx - by JaTochNietDan - 08.08.2010, 20:25
Re: KillTimerEx - by Mike Garber - 08.08.2010, 20:26
Re: KillTimerEx - by [XST]O_x - 08.08.2010, 20:37
Re: KillTimerEx - by JaTochNietDan - 08.08.2010, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)