SA-MP Forums Archive
Help my Timer - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help my Timer (/showthread.php?tid=123927)



Help my Timer - Hijolion - 27.01.2010

http://pastebin.com/m1ec0c275


I don't know how to use SetTimer Properly Please help me out I want to make a nuke for japan everything works
but the Timer Dosen't respond at all.


Re: Help my Timer - ScottCFR - 27.01.2010

Ok, 1000ms = 1 second


so this
Код:
SetTimer("NukeJapan",1000,false);
should be
Код:
SetTimer("NukeJapan",600000,false);
That's 10 minutes.


Re: Help my Timer - Hijolion - 27.01.2010

Quote:
Originally Posted by ScottCFR
Ok, 1000ms = 1 second


so this
Код:
SetTimer("NukeJapan",1000,false);
should be
Код:
SetTimer("NukeJapan",600000,false);
That's 10 minutes.
I just gave you an example of the question. Thats not what I expected.


Re: Help my Timer - ScottCFR - 27.01.2010

Oh, That timer looks right to me. I thought you were having a timing problem


Re: Help my Timer - ScottCFR - 27.01.2010

Ok, i looked at a script i got for something else try this.


Код:
SetTimerEx("NukeJapan", 600000, false);
this is the original


Код:
SetTimerEx("ToggleSpawn", 300000, false,"e",playerid);
For a car spawner