How to separate numbers by comma?
#1

Hi, if possible, I wish someone would create a function to do so:

pawn Код:
Comma(value);
Where the value would be a number. This function Comma(value) return the string value with the commas.

For example:

pawn Код:
new money, str[110];
money = 1500;
format(str, sizeof(str), "You have %s", Comma(money));
SendClientMessage(playerid, cor, str);
The result would be:

You have 1,500

I appreciate the help.
Reply


Messages In This Thread
How to separate numbers by comma? - by Bloude - 03.06.2011, 16:49
Re: How to separate numbers by comma? - by jameskmonger - 03.06.2011, 16:58
Re: How to separate numbers by comma? - by Bloude - 03.06.2011, 17:03
Re: How to separate numbers by comma? - by gamer931215 - 03.06.2011, 17:09
Re: How to separate numbers by comma? - by jameskmonger - 03.06.2011, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)