Help with one thing please - 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 with one thing please (
/showthread.php?tid=271008)
Help with one thing please -
Compton - 22.07.2011
Hello, well I dont know if this is the right section But could someone please tell me how to set 1 hour in PAWNO?
-Thank you
Re: Help with one thing please -
System64 - 22.07.2011
1 hour in Pawno? wtf?
Re: Help with one thing please -
Compton - 22.07.2011
I mean I have a payday system for example, And I want to set that every hour it wil lgive payday to people, how do I actually write 1 hour in the script? I wont write 1 hour right? :P
Re: Help with one thing please -
dillo1000 - 22.07.2011
pawn Код:
payday[playerid] = SetTimerEx("payday",14400000,1,"d",playerid);
That would be 14 Minutes for example
Re: Help with one thing please -
Compton - 22.07.2011
Ohh ok, thank you
Re: Help with one thing please -
alpha500delta - 22.07.2011
Quote:
Originally Posted by dillo1000
pawn Код:
payday[playerid] = SetTimerEx("payday",14400000,1,"d",playerid);
That would be 14 Minutes for example
|
Actually that would be 240 minutes
.
14000 is 14 seconds, as SetTimer and SetTimerEx operate in milliseconds.
Re: Help with one thing please -
MadeMan - 22.07.2011
1 hour = 60 minutes = 3600 seconds = 3600000 milliseconds