Get World Time
#1

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!
Reply
#2

https://sampwiki.blast.hk/wiki/Gettime
Reply
#3

Isn't that to get the time of the computer of the server?
Reply
#4

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.
Reply
#5

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



Reply
#6

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

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
Reply
#8

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);
Reply
#9

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.
Reply
#10

I think this is something you are looking for

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)