PDA

View Full Version : [ASK]FormatMoney


DiamondGold
14/02/2015, 04:17 PM
Hello guys, I want to ask something about FormatMoney. I use this stock
http://pastebin.com/qWBbVvJ5
But, when I play and use /stats command, it shows me like at the screenshot.
This is my ShowStats code
http://pastebin.com/sBVqX3uz

Thx before.

MBilal
14/02/2015, 05:29 PM
change this code
format(coordsstring, sizeof(coordsstring), "Cash: $%s | Bank Balance: $%s | Upgrade Points: %d | Spawn Armor: %.0f | Next level: %d/%d hours", FormatMoney(GetPlayerCash(targetid)), FormatMoney(PlayerInfo[targetid][pAccount]), upgradep, shealth, exp, expamount);
SendClientMessageEx(playerid, COLOR_WHITE,coordsstring);

to this


format(coordsstring, sizeof(coordsstring), "Cash: $%d | Bank Balance: $%d | Upgrade Points: %d | Spawn Armor: %.0f | Next level: %d/%d hours", FormatMoney(GetPlayerCash(targetid)), FormatMoney(PlayerInfo[targetid][pAccount]), upgradep, shealth, exp, expamount);
SendClientMessageEx(playerid, COLOR_WHITE,coordsstring);