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



Show number - ScIrUsna - 27.06.2016

Hi,

How show number like 00001? if i have

new mynumber = 1;
format( string, 49,"%d", mynumber );
SendClientMessage( playerid, -1, string );

I want to format that 1 will be showing like 000001


Re: Show number - AbyssMorgan - 27.06.2016

PHP код:
formatstring49,"%06d"mynumber );