Time Error. Clock Restarts.
#10

holy just do
pawn Код:
new hour, minute;
pawn Код:
//OnGameModeInit
    SetTimer("UpdateTime", 60 * 1000, true);
pawn Код:
//OnPlayerConnect
    TogglePlayerClock(playerid, true);
    SetPlayerTime(playerid, hour, minute);
pawn Код:
//OnPlayerSpawn
    SetPlayerTime(playerid, hour, minute);
pawn Код:
forward UpdateTime();
public UpdateTime()
{
    gettime(hour, minute);
    for(new i; i != MAX_PLAYERS; i++) SetPlayerTime(i, hour, minute);
    SetWorldTime(hour);

}
That will sync the time for all players and sets the world time to the time on the clock
And I dont know where the f****** problem was with that
Reply


Messages In This Thread
Time Error. Clock Restarts. - by David5290 - 28.01.2011, 21:37
Re: Time Error. Clock Restarts. - by David5290 - 28.01.2011, 21:59
Re: Time Error. Clock Restarts. - by David5290 - 28.01.2011, 23:03
Re: Time Error. Clock Restarts. - by David5290 - 28.01.2011, 23:55
AW: Time Error. Clock Restarts. - by Nero_3D - 29.01.2011, 00:23
Re: AW: Time Error. Clock Restarts. - by David5290 - 29.01.2011, 00:51
Re: Time Error. Clock Restarts. - by David5290 - 29.01.2011, 03:22
Re: Time Error. Clock Restarts. - by Antonio [G-RP] - 29.01.2011, 03:52
Re: Time Error. Clock Restarts. - by David5290 - 29.01.2011, 15:39
AW: Time Error. Clock Restarts. - by Nero_3D - 29.01.2011, 16:27

Forum Jump:


Users browsing this thread: 3 Guest(s)