Timer problem -
Mechscape - 05.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 problem -
Mechscape - 06.06.2010
Hey! I need really fix that problem... Can anyone help? :S (Topic was in 5 pages.)
Re: Timer problem -
Mechscape - 06.06.2010
Can anyone help?! :S :S Really sick... Problem still 1 weeks..
Re: Timer problem -
DJDhan - 06.06.2010
I do not understand the problem. Please explain the problem more clearly
Re: Timer problem -
Mechscape - 06.06.2010
Like timer or payday doens't work.
Like log:
[18:26] 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.
[03:00] Payday didnt come.
[04:00] Payday didnt come.
....
Like, if payday didnt come, then needed again /refreshsync2.
Re: Timer problem -
DJDhan - 06.06.2010
Mm, if the timer doesn't work, then how come the server-log file shows Payday came and didn't come? What exactly do you want to do?
Is it like simple Payday (when a day is over, you get some money?)? I see you have a lotto in there too?
Re: Timer problem -
Shadow_ - 06.06.2010
Код:
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
Change that too
Код:
if ((tmphour > ghour) || (tmphour == 0 && ghour == 24))
Could work...
Re: Timer problem -
Mechscape - 06.06.2010
No, no.
I mean "didnt come" like "did not come", or ... damn, my english is bad.
Like payday or timer doens't work, why? Payday didn't come...
//
Shadow-, will that work? I can't wait many hour's, to check will payday come.
Re: Timer problem -
UsaBoy91 - 06.06.2010
Quote:
|
Originally Posted by Picharelo
No, no.
I mean "didnt come" like "did not come", or ... damn, my english is bad.
Like payday or timer doens't work, why? Payday didn't come...
|
I reported you to moderators for spam , spam into another threads.
STOP THIS SHIT , YOU ****ING KID !
Re: Timer problem -
DJDhan - 06.06.2010
There is some problem with your Payday() then.
Quote:
|
Originally Posted by Angel φ
Quote:
|
Originally Posted by Picharelo
No, no.
I mean "didnt come" like "did not come", or ... damn, my english is bad.
Like payday or timer doens't work, why? Payday didn't come...
|
I reported you to moderators for spam , spam into another threads.
STOP THIS SHIT , YOU ****ING KID !
|
Woot?