Problem with timers - 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: Problem with timers (
/showthread.php?tid=512740)
Problem with timers -
Dusan01 - 12.05.2014
Hi guys, i have problem with timers, when i have more then 80 players on server payday timer stop working, and under 80 player payday timer works perfect
Re: Problem with timers -
SAMProductions - 12.05.2014
Show us your PayDay Code (stock / public, whatever...).
Re: Problem with timers -
Dusan01 - 12.05.2014
ongamemodeinit:
Код:
synctimer = SetTimer("SyncTime", 60000, true);
public synctimer:
Код:
forward SyncTime();
public SyncTime()
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
// SCMTA(CRVENA,"Priv deo sync time aktiviran.");
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
{
new string[56];
format(string, sizeof(string), "{07C1F5}{ffffff}Now is {07C1F5}%d:00h",tmphour);
SCMTA(BELA, string);
PayDay();
}
}
and when i reach 80+ player this now is %d:00h dont show... like timer stop repeating