Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

How do I add comma ?

$
0
0
Hi I'm struggling to add comma whenever I catch a fish to show (You caught a Fish worth 2,500$ instead of You caught a Fish worth 2500$)

Code:

                                money = 10000 + random(15000);
                                PlayerInfo[playerid][pFishPrice] = money;
                            SendClientMessage(playerid, COLOR_DARKPINK, "You caught a normal fish!");
                            format(string,sizeof(string),"Your fish is worth $%d!", money);
                            SendClientMessage(playerid, COLOR_DARKPINK, string);
                            SendClientMessage(playerid, COLOR_WHITE, "To sell the fish go to a  24/7.");
                            format(string,sizeof(string),"* %s caught a common fish that can be sold for about $%d.", sendername, money);
                        ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
                                PlayerInfo[playerid][pFishes] = 1;

Any ideas please ?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>