Formatting numbers help!
#1

Hello everyone.
I want a function "stock" to format cash or any number.
Example, If money = 1565105, after using "AFM", It will be 1,565,105
I want the script of "format", here is an example:
Код:
money = 1766918
format(string, sizeof(string), "You have paid $%s, good for you! :D", AFM(money);
SendClientMessage(playerid, COLOR_WHITE, string);
The message will be like:
"You have paid $1,766,918, good for you! "

Thanks for reading,
I help you help me!
Reply


Messages In This Thread
Formatting numbers help! - by E7mad - 18.12.2015, 19:25
Re: Formatting numbers help! - by Shoulen - 18.12.2015, 20:15
Re: Formatting numbers help! - by SickAttack - 18.12.2015, 20:20
Re: Formatting numbers help! - by Shoulen - 18.12.2015, 20:21
Re: Formatting numbers help! - by E7mad - 18.12.2015, 20:36
Re: Formatting numbers help! - by Vince - 19.12.2015, 00:32

Forum Jump:


Users browsing this thread: 2 Guest(s)