Timer + Payday
#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

I'm still waiting for peoples help it. :/
Reply
#3

Please, can anyone help it? :S
Reply
#4

Help?
Reply
#5

Read the rules..
Reply
#6

Can anyone help??
Reply
#7

Quote:
Originally Posted by Picharelo
Can anyone help??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)