servertime - 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: servertime (
/showthread.php?tid=652537)
servertime -
Zeus666 - 13.04.2018
PHP код:
new str[128], str2[128], Year, Month, Day, Hour, Minute, Second;
format(str2, sizeof(str2), "*"COL_WHITE"|____________|%s @ %02d/%02d/%d %02d:%02d:%02d |__________________", PlayerName(playerid),Day, Month, Year, Hour, Minute, Second);
But in game it shows 00/00/0 00:00:00
Re: servertime -
Mugala - 13.04.2018
yeah, you have to get these values first with gettime and getdate.
gettime(Hour,Minute,Second); and getdate(Year,Month,Day);
Re: servertime -
Zeus666 - 13.04.2018
Thank you again