KillTimer()
#7

Quote:
Originally Posted by Last_Stand_Guardian
Посмотреть сообщение
The problem is that PVars are by default 0 up to the moment when we set them to an another value.
So when you use this command you're firstly trying to kill a timer who haven't started yet.
Try:
pawn Код:
new pvptimer = -1;
pawn Код:
if(pvptimer != -1) KillTimer(pvptimer);
Secondly:
You should use: new pvptimer[MAX_PLAYERS] = -1; or PVars to save the timerid, because when you kill this timer, you kill it for everybody xD ^^
Thanks.
Reply


Messages In This Thread
KillTimer() - by Nonameman - 22.07.2010, 16:10
Re: KillTimer() - by Last_Stand_Guardian - 22.07.2010, 16:16
Re: KillTimer() - by Nonameman - 22.07.2010, 16:31
Re: KillTimer() - by DJDhan - 22.07.2010, 16:37
Re: KillTimer() - by Nonameman - 22.07.2010, 16:39
Re: KillTimer() - by Last_Stand_Guardian - 22.07.2010, 16:53
Re: KillTimer() - by Nonameman - 23.07.2010, 13:52

Forum Jump:


Users browsing this thread: 1 Guest(s)