Using GetTime to form synced time.
#1

Hi, Slice said to use this to get synced time but it's sort of incomplete:

He said place this under ongamemodeinit:
pawn Код:
g_ReferenceTime = gettime();
and then this under a function which calls every second:
pawn Код:
TimeHour = (gettime() - g_ReferenceTime) / 60 % 24;
TimeMinute = (gettime() - g_ReferenceTime) / 60;
He said the variables will now hold the time in which the setplayertime is, which makes them synced.

But what is wrong here?
Reply


Messages In This Thread
Using GetTime to form synced time. - by Kyle - 16.07.2012, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)