30.09.2009, 08:58
BUMB!
Having the same problem, my clock makes the sky flash 2, and realy like every second (ANOYING!
)
Here is my code, hope you guys can figure out why the sky flashes, (it would be a miracle)
somewhere in OnGameModeInit()
bit furder down in my code
Grts Riz
Having the same problem, my clock makes the sky flash 2, and realy like every second (ANOYING!
)Here is my code, hope you guys can figure out why the sky flashes, (it would be a miracle)
somewhere in OnGameModeInit()
pawn Код:
SetTimer("ClockSync", 1000, 1);
pawn Код:
forward ClockSync(playerid);
public ClockSync(playerid)
{
new string[128];
Minute = Minute + 1;
if (Minute == 60)
{
Time = Time + 1;
Minute = 0;
}
if (Time == 24)
{
Time = 0;
}
for(new i; i<MAX_PLAYERS; i++)
SetPlayerTime(i, Time, Minute);
format(string, sizeof(string), "The time [%d] [%d]", Time, Minute);
//print(string); // testing only.
print("achtenveertigste bericht - tot hier ok");
return 1;
}

