SA-MP Forums Archive
Help :| - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help :| (/showthread.php?tid=81825)



Help :| - Dreftas - 14.06.2009

I have numbers: 5, 12, 05, 99, 01
How to make one number: 512059901 (0's must be included too)


Re: Help :| - CracK - 14.06.2009

pawn Код:
new n1,n2,n3,n4,n5,number;
n1 = 5;
n2 = 12;
n3 = 5;
n4 = 99;
n5 = 1;
new str[128];
format(str,sizeof(str),"%d%d%02d%d%02d",n1,n2,n3,n4,n5);
number = strval(str);
Something like this..