Nmbers.. - 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: Nmbers.. (
/showthread.php?tid=604237)
Nmbers.. -
SamJust - 02.04.2016
So, we have this
Код:
format(srt,16,"%.2f",f);
To make "0.23232" to be shown as "0.23". So is there a way to do the same for integers? For example if i have 10 it will show "0010" and if the number is 120 for it to show "0120"?
Re: Nmbers.. -
Misiur - 02.04.2016
Yup
pawn Код:
format(srt, sizeof srt, "%04d", yourinteger)
Re: Nmbers.. -
SamJust - 02.04.2016
Thanks!