Time sync - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Time sync (
/showthread.php?tid=492125)
Time sync -
Lidor124 - 02.02.2014
I found that code on my script (based GF) and i understood it belongs to time about GMT...
Код:
public FixHour(hour)
{
hour = timeshift+hour;
if (hour < 0)
{
hour = hour+24;
}
else if (hour > 23)
{
hour = hour-24;
}
shifthour = hour;
return 1;
}
I have clock textdraw of hour,minutes,seconds for example: 17:46:32
So my problem is the time is on delay of 1 hour instead of advance 1 hour
the original is: 16:46:32
i want to change it to 17:46:32
Thanks
Re: Time sync -
Misiur - 02.02.2014
You can hardcode it like
Or track down timeshift variable and change it instead.
Re: Time sync -
Lidor124 - 02.02.2014
Thanks +REP