16.07.2012, 14:30
Hi, Slice said to use this to get synced time but it's sort of incomplete:
He said place this under ongamemodeinit:
and then this under a function which calls every second:
He said the variables will now hold the time in which the setplayertime is, which makes them synced.
But what is wrong here?
He said place this under ongamemodeinit:
pawn Код:
g_ReferenceTime = gettime();
pawn Код:
TimeHour = (gettime() - g_ReferenceTime) / 60 % 24;
TimeMinute = (gettime() - g_ReferenceTime) / 60;
But what is wrong here?