SA-MP Forums Archive
Number format - 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: Number format (/showthread.php?tid=558721)



Number format - n00el - 18.01.2015

Hello.

How to format this number '201234567' to this - '20 123 4567'?


Re: Number format - Schneider - 18.01.2015

You mean you want the first 2 digits to be together, then the next 3, then the next 4, then the next 5, et cetra?


Re: Number format - zT KiNgKoNg - 18.01.2015

All i can say is, before asking try to search and fix the issue on your own, or create a function that will do it for you. Frankly this post to you may seem like a waste of time, but what would truly waste my time is doing what you should have done in the first place.