SA-MP Forums Archive
format - 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: format (/showthread.php?tid=505972)



format - Lidor124 - 11.04.2014

it should look like it:
Код:
JoinDate = %d-%d-%d (example 11-4-2014)
its print in the INI file:
Код:
11-4-2014 =
Yes my entry is wrong but i have no idea how do it (No idea goes up to head haha )

Код:
new year, month, day;
				getdate(year, month, day);
				format(var, 32, "%d-%d-%d", day, month, year);
				INI_WriteString(File, var, PlayerInfo[playerid][pJoinDate]);



Re: format - BroZeus - 11.04.2014

use this
pawn Код:
INI_WriteString(File,"Join_Date", var);



Re: format - Lidor124 - 11.04.2014

Thanks Zeus +REP