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


Forum Jump:


Users browsing this thread: 2 Guest(s)