SA-MP Forums Archive
help, formatting - 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: help, formatting (/showthread.php?tid=450144)



help, formatting - Micius - 11.07.2013

How to format string, if i have for example 56 int, and i want to make: 00000056?


Re: help, formatting - Konstantinos - 11.07.2013

pawn Код:
"%08d"



Re: help, formatting - Micius - 11.07.2013

new Kilo[128];
How i can get number from array?


Re: help, formatting - Konstantinos - 11.07.2013

Quote:
Originally Posted by Micius
Посмотреть сообщение
new Kilo[128];
How i can get number from array?
What do you mean?
pawn Код:
// Kilo[number_value]



Re: help, formatting - Micius - 11.07.2013

Im using inc, that returns array. In that array are numbers, and i want substract from it.
Kilo[128]; This is what i get from include. Now i want to substract Kilo-40;


Re: help, formatting - Micius - 11.07.2013

Nevermind, +rep for help.