SA-MP Forums Archive
Timer time is duplicating.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timer time is duplicating.. (/showthread.php?tid=531777)



Timer time is duplicating.. - Magic_Time - 14.08.2014

So I have this:

PHP код:
Timer[playerid][myzone] = SetTimerEx("TakeZone"time*1000false"ii"playeridmyzone); 
But it actually gets called in 20 seconds not in 10, can someone help me?


I really need that and to make it work I'm doing this right now:

PHP код:
new time ZoneInfo[czone][CZ_Time]/2;//I have to divide it in two so if the zone time is 20 seconds the timer will take it as 20 :(
                
Timer[playerid][czone] = SetTimerEx("TakeZone"time*1000false"ii"playeridczone); 



Re: Timer time is duplicating.. - SickAttack - 14.08.2014

time * 1000 / 2


Re: Timer time is duplicating.. - Magic_Time - 14.08.2014

--- That's pretty obvious. ---

I want to know why the timer is duplacating the given time.

Thanks