Dotted cash?
#1

Idk if it can be done with stock or w/e, i have no idea to do it
i need to convert some cash like "$300000" to "$3,000,000"
Is there anyway to do it?
Reply
#2

Use this include : https://sampforum.blast.hk/showthread.php?tid=184328
Reply
#3

Hmmm, so Formatnumber(cash,','); will return the dotted cash? D:
Idk how to use it, theres explaination for floats only -.-"
Hmmm, Nevermind, i know how to use it now, Ty, Repped
Reply
#4

First, you need to define the thousand separator.
Put this code before including that include.
Код:
#define DEFAULT_THOUSAND_SEP  ','
Example code:
Код:
printf("%s", FormatNumber(300000));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)