server time - 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: server time (
/showthread.php?tid=425562)
server time -
Chrillzen - 26.03.2013
I believe the script I'm testing checks the time where the server is hosted, wich would be East USA.
I want the time to be GMT +1, any ideas on how to do it?
Re: server time - Joao Pedro - 26.03.2013
looks for gettime(). This function use a parameter to define the hours. You just need adjust it. Example:
If you want increase at 1 hour, increase the hour variable with 1
Mini example:
Код:
new hour, minute, second;
Getdate(hour, minute, second);
hour += 1