[SOLVED] Normal clock?
#10

Quote:
Originally Posted by SAWC™
Ok good, :
pawn Код:
forward ChangeTime();
public ChangeTime()
{
  new
    string[6];

  time[1] ++;
  if(time[1] > 59) time[1] = 0, time[0] ++;
  if(time[0] > 23) time[0] = 0, time[1] = 0;
  format(string, sizeof(string), "%02d:%02d", time[0], time[1]);
  TextDrawSetString(txtTimeDisp, string);
  for(new i = 0; i < MAX_PLAYERS; i ++)
  {
    if(IsPlayerConnected(i)) SetPlayerTime(i, time[0], time[1]);
  }
  return 1;
}
That should update the text draw.
Thanks man, works
Reply


Messages In This Thread
[SOLVED] Normal clock? - by FreddeN - 03.03.2010, 13:39
Re: [HELP] Normal clock? - by Miguel - 03.03.2010, 13:50
Re: [HELP] Normal clock? - by FreddeN - 03.03.2010, 13:56
Re: [HELP] Normal clock? - by Miguel - 03.03.2010, 14:01
Re: [HELP] Normal clock? - by FreddeN - 03.03.2010, 14:08
Re: [HELP] Normal clock? - by MaykoX - 03.03.2010, 14:09
Re: [HELP] Normal clock? - by Miguel - 03.03.2010, 14:13
Re: [HELP] Normal clock? - by FreddeN - 03.03.2010, 16:12
Re: [HELP] Normal clock? - by Miguel - 03.03.2010, 16:17
Re: [HELP] Normal clock? - by FreddeN - 03.03.2010, 16:32

Forum Jump:


Users browsing this thread: 2 Guest(s)