Sync World Time
#15

Quote:
Originally Posted by bonas
This is an easy synced clock script.

It is not a pro script but hope you like it.

Untested !

pawn Код:
// top
new Timme;
new Minut;

// on filterscript/gamemode init
SetTimer("ClockSync", 1000, 1);

// onplayerspawn
TogglePlayerClock(playerid, 1);

// function

public ClockSync(playerid)
{
  new string[128];
  Minut = Minut + 1;
  if (Minut == 60)
  {
    Timme = Timme + 1;
    Minut = 0;
  }
  for(new i; i<MAX_PLAYERS; i++)
  SetPlayerTime(i, Timme, Minut);
  format(string, sizeof(string), "The time [%d] [%d]", Timme, Minut);
  print(string); // testing only.
  return 1;
}
I hope it works
Don't read this lol
I have 1 Warning with this Sync Script

warning 235: public function lacks forward declaration (symbol "ClockSync")

how can i fix this problem? pelase help me

thanx
Reply


Messages In This Thread
Sync World Time - by warlost - 20.01.2008, 07:32
Re: Sync World Time - by warlost - 20.01.2008, 07:49
Re: Sync World Time - by Khaled - 20.01.2008, 07:55
Re: Sync World Time - by warlost - 20.01.2008, 08:00
Re: Sync World Time - by cmg4life - 20.01.2008, 08:29
Re: Sync World Time - by warlost - 20.01.2008, 20:44
Re: Sync World Time - by XGh0stz - 21.01.2008, 02:21
Re: Sync World Time - by Pghpunkid - 21.01.2008, 04:03
Re: Sync World Time - by XGh0stz - 21.01.2008, 18:41
Re: Sync World Time - by cmg4life - 21.01.2008, 18:49
Re: Sync World Time - by XGh0stz - 21.01.2008, 19:17
Re: Sync World Time - by warlost - 22.02.2008, 05:51
Re: Sync World Time - by bonas - 17.10.2008, 19:10
Re: Sync World Time - by Rizard - 31.03.2009, 18:00
Re: Sync World Time - by Vegeta - 05.06.2009, 11:49
Re: Sync World Time - by Jefff - 05.06.2009, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)