SA-MP Forums Archive
Get World 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Get World Time (/showthread.php?tid=154482)



Get World Time - VirSpectorX - 14.06.2010

Does anyone knows how to get the world time? Because the function to change it "SetWorldTime", does it means to get it "GetWorldTime"? Please help!


Re: Get World Time - Retardedwolf - 14.06.2010

https://sampwiki.blast.hk/wiki/Gettime


Re: Get World Time - VirSpectorX - 14.06.2010

Quote:
Originally Posted by www.******.com
Isn't that to get the time of the computer of the server?


Re: Get World Time - Flashy - 14.06.2010

What do you mean?

GetTime get the time from your server. I think you must learn basics thinks. Please try to learn how to script.


Re: Get World Time - Cameltoe - 14.06.2010

Could u explain what you want? Get the world time? did you set the time?






Re: Get World Time - Jakku - 14.06.2010

Gettime gets the time from the computer the server is hosted from. Not the server world time.


Re: Get World Time - TheInnocentOne - 14.06.2010

Quote:
Originally Posted by Flashy
What do you mean?

GetTime get the time from your server. I think you must learn basics thinks. Please try to learn how to script.
Learn to script before you make yourself look like an idiot.

The gettime functions gets the time of the time of the actual server/computer the server.exe program is running on. gettime has nothing to do with in-game world time.

https://sampwiki.blast.hk/wiki/Gettime


Re: Get World Time - Jefff - 14.06.2010

top
Code:
new WorldTime;
change time command
Code:
WorldTime = strval(tmp/params);
SetWorldTime(WorldTime);
gettime command
Code:
new str[7];
format(str,7,"%d:00",WorldTime);



Re: Get World Time - VirSpectorX - 20.06.2010

Quote:
Originally Posted by TheInnocentOne
Quote:
Originally Posted by Flashy
What do you mean?

GetTime get the time from your server. I think you must learn basics thinks. Please try to learn how to script.
Learn to script before you make yourself look like an idiot.

The gettime functions gets the time of the time of the actual server/computer the server.exe program is running on. gettime has nothing to do with in-game world time.

https://sampwiki.blast.hk/wiki/Gettime
I already knows about scripting and i am no more a Newbie...
But, GetTime is to get the time of the server where it's hosted, not the In Game Server Time...

What i need is the IN GAME server time, GetTime() is to get the time of the HOSTER OF THE SERVER

Like what Jakku said:
Quote:
Originally Posted by Jakku
Gettime gets the time from the computer the server is hosted from. Not the server world time.



Re: Get World Time - Cameltoe - 20.06.2010

I think this is something you are looking for

- https://sampwiki.blast.hk/wiki/SetWorldTime