Clock Troubles
#4

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()
pawn Код:
SetTimer("ClockSync", 1000, 1);
bit furder down in my code

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;
}
Grts Riz
Reply


Messages In This Thread
Clock Troubles - by StrickenKid - 15.07.2009, 21:02
Re: Clock Troubles - by StrickenKid - 15.07.2009, 22:31
Re: Clock Troubles - by ledzep - 15.07.2009, 22:38
Re: Clock Troubles - by Rizard - 30.09.2009, 08:58
Re: Clock Troubles - by CracK - 30.09.2009, 09:28
Re: Clock Troubles - by Rizard - 30.09.2009, 09:56
Re: Clock Troubles - by CracK - 30.09.2009, 10:38
Re: Clock Troubles - by Rizard - 30.09.2009, 12:09
Re: Clock Troubles - by CracK - 30.09.2009, 12:19
Re: Clock Troubles - by Rizard - 30.09.2009, 12:51
Re: Clock Troubles - by Desert - 30.09.2009, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)