Nmbers..
#1

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"?
Reply
#2

Yup
pawn Код:
format(srt, sizeof srt, "%04d", yourinteger)
Reply
#3

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)