SA-MP Forums Archive
One small question! - 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: One small question! (/showthread.php?tid=376210)



One small question! - Ruffian - 09.09.2012

SetTimerEx("Payday",1*60*60*3600000,true,"i",j)

How do I make this timer is activated every hour rounds?


Re: One small question! - Rudy_ - 09.09.2012

pawn Код:
SetTimerEx("Payday",360000,true,"i",playerid)

//Anywhere, not in Callbacks

forward Payday(playerid);
public Payday(playerid)
{
    //Your other code
    return 1;
}



Re: One small question! - Ruffian - 10.09.2012

Don't work.Help?


Re: One small question! - Roko_foko - 10.09.2012

SetTimerEx("Payday",360000,true,"i",playerid) put OnPlayerConnect


Re: One small question! - [MG]Dimi - 10.09.2012

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
SetTimerEx("Payday",360000,true,"i",playerid) put OnPlayerConnect
One real hour is 3'600'000, not 360'000 because: 60*60=3600; 3'600*1000=3'600'000; So real code is:

SetTimerEx("Payday",3600000,true,"i",playerid);

Also if you would put it under OnPlayerConnect I suggest you to add Variable to track each Timer for each player and then on disconnect kill timer of player that left the server.


Re: One small question! - Ruffian - 10.09.2012

How to create this timer?


Re: One small question! - Ruffian - 11.09.2012

Again don't work.


Re: One small question! - Ruffian - 11.09.2012

Please help?


Re: One small question! - Ruffian - 11.09.2012

Payday use 3 systems and no one not raboti.Puskam server 5 minutes before the hour rounds and gives me Payday. This is the final system test and if someone can help me I would greatly appreciate it!


Re: One small question! - TheDeath - 12.09.2012

Quote:
Originally Posted by Ruffian
Посмотреть сообщение
Payday use 3 systems and no one not raboti.Puskam server 5 minutes before the hour rounds and gives me Payday. This is the final system test and if someone can help me I would greatly appreciate it!
Please english - Translated:
Payday use 3 systems and no one didn't worked.I start server 5 minutes before the hour rounds and gives me Payday. This is the final system test and if someone can help me I would greatly appreciate it!

The posts over me should work