What is that? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: What is that? (
/showthread.php?tid=298558)
What is that? -
rokata555 - 21.11.2011
How minutes is that ?
Код:
SetTimer("TipBot", 720000, 1);
How i can to change it every one minute?
Sorry for my bad english
Re: What is that? -
Babul - 21.11.2011
1000 ms (timers use milliseconds) equals 1 second. so 720000=720 seconds, thats 12 minutes.
you may write it like this:
Код:
SetTimer("TipBot", 12*60*1000, 1);
or, as you want, as a 1-minute timer:
Код:
SetTimer("TipBot", 60*1000, 1);
dont worry about the ugly looking values, the compiler pre-compiles them, since the they are constants
Re: What is that? -
Elorreli - 21.11.2011
Quote:
Originally Posted by rokata555
How minutes is that ?
Код:
SetTimer("TipBot", 720000, 1);
How i can to change it every one minute?
Sorry for my bad english
|
http://lmgtfy.com/?q=convert+milliseconds+to+minutes
Re: What is that? -
rokata555 - 21.11.2011
Thanks so Much