Payday every 1 hour
#4

Then:

Код:
synctimer = SetTimer("SyncTime", 3600000, 1);
Код:
public SyncTime()
{
	new string[64];
	new tmphour;
	new tmpminute;
	new tmpsecond;
	gettime(tmphour, tmpminute, tmpsecond);
	FixHour(tmphour);
	//tmphour = shifthour;
	//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);
}
It's correct?

How do make :00?

But i want make, it takes for In Real Life time. When IRL 22:00 then comes payday.

LARP got that payday system, but these time is bugged.
Reply


Messages In This Thread
Payday every 1 hour - by Mechscape - 21.05.2010, 19:02
Re: Payday every 1 hour - by BLAbla93 - 21.05.2010, 19:02
Re: Payday every 1 hour - by Sergei - 21.05.2010, 19:03
Re: Payday every 1 hour - by Mechscape - 21.05.2010, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)