Timer problem
#1

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:
_________________________________________________
_________________________________________________
Код:
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);
		}
	}
}
Reply
#2

Hey! I need really fix that problem... Can anyone help? :S (Topic was in 5 pages.)
Reply
#3

Can anyone help?! :S :S Really sick... Problem still 1 weeks..
Reply
#4

I do not understand the problem. Please explain the problem more clearly
Reply
#5

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.
Reply
#6

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?
Reply
#7

Код:
 if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
Change that too
Код:
if ((tmphour > ghour) || (tmphour == 0 && ghour == 24))
Could work...
Reply
#8

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.
Reply
#9

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 !
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)