How do I add comma ?
#1

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$)

Код:
				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 ?
Reply
#2

https://sampwiki.blast.hk/wiki/AddCommas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)