Get Date don't work? - 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: Get Date don't work? (
/showthread.php?tid=469775)
Get Date don't work? -
Blackazur - 14.10.2013
Код:
stock GetDate(playerid)
{
new Year, Month, Day, string[124];
getdate(Year, Month, Day);
format(string,sizeof(string),"%02d/%02d/%d", Day, Month, Year);
SendClientMessage(playerid,-1,string);
return string;
}
Why this don't work?
Re: Get Date don't work? -
matyi10012 - 14.10.2013
You should try this.
Код:
stock GetDate(playerid)
{
new Year, Month, Day, string[124];
getdate(Year, Month, Day);
format(string,124,"%d/%d/%d", Day, Month, Year);
SendClientMessage(playerid,-1,string);
return string;
}