Timer + Payday - 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: Timer + Payday (
/showthread.php?tid=152043)
Timer + Payday -
Mechscape - 02.06.2010
Hello scripter's!
I have problem that payday or timer.
Like:
[18:05] Starting server.
[19:00] Payday comed.
[20:00] Payday comed.
[21:00] Payday didnt come.
[22:00] Payday didnt come.
[23:00] Tryed /refreshsync2 (Deletes timer and creating new timer to check)
[00:00] Payday comed.
[01:00] Payday comed.
[02:00] Payday didnt come.
anyone know sloution's, how do fix it?
Sorry for bad english!
Code:
_________________________________________________
_________________________________________________
Код:
synctimer = SetTimer("SyncUp", 15000, 1);
Код:
public SyncUp()
{
SyncTime();
DollahScoreUpdate();
}
Код:
public SyncTime()
{
new string[64];
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
{
tmphour++;
format(string, sizeof(string), "Kell: Tere, kell on saanud %d:00",tmphour);
BroadCast(COLOR_WHITE,string);
ghour = tmphour;
PayDay();
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayerInfo[i][pConnectTime] += 1;
}
format(string, sizeof(string), "Eesti Loto Uudised: Eesti Loto loosimine algas - head loosiхnne.");
OOCOff(COLOR_WHITE, string);
new rand = random(80);
if(rand < 77) { rand += 3; }
Lotto(rand);
if (realtime)
{
//SetWorldTime(tmphour);
}
}
}
Re: Timer + Payday -
Mechscape - 02.06.2010
I'm still waiting for peoples help it. :/
Re: Timer + Payday -
Mechscape - 02.06.2010
Please, can anyone help it? :S
Re: Timer + Payday -
Mechscape - 02.06.2010
Help?
Re: Timer + Payday -
-Rebel Son- - 02.06.2010
Read the rules..
Re: Timer + Payday -
Mechscape - 03.06.2010
Can anyone help??
Re: Timer + Payday -
Mechscape - 04.06.2010
Quote:
Originally Posted by Picharelo
Can anyone help??
|