!!Time Machine!!
#4

Quote:
Originally Posted by Nero_3D
View Post
tickcount and GetTickCount returns values in ms, just use gettime, it is in seconds

That would be now 1 second = 1 minute in game
pawn Code:
TogglePlayerClock(playerid, ENABLE);   
new count = gettime() % 3600;
SetPlayerTime(playerid, count / 60, count % 60);
But that needs to be in a timer, otherwise it will raise like in single player
But my code works fine, the clock shows a common time for everyone.The problem is the clock runs like a cheetah.
Reply


Messages In This Thread
!!Time Machine!! - by Yashas - 27.12.2013, 16:08
Re: !!Time Machine!! - by Yashas - 28.12.2013, 13:39
AW: !!Time Machine!! - by Nero_3D - 28.12.2013, 15:04
Re: AW: !!Time Machine!! - by Yashas - 30.12.2013, 14:26
AW: !!Time Machine!! - by Nero_3D - 30.12.2013, 14:58
Re: AW: !!Time Machine!! - by Yashas - 31.12.2013, 10:46
AW: !!Time Machine!! - by Nero_3D - 31.12.2013, 11:37
Re: !!Time Machine!! - by park4bmx - 31.12.2013, 11:51
Re: AW: !!Time Machine!! - by Yashas - 01.01.2014, 17:55

Forum Jump:


Users browsing this thread: 2 Guest(s)