05.06.2010, 11:34
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:
_________________________________________________
_________________________________________________
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:
_________________________________________________
_________________________________________________
Код:
new synctimer;
Код:
forward SyncUp();
Код:
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);
}
}
}

