SA-MP Forums Archive
[ASK]FormatMoney - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [ASK]FormatMoney (/showthread.php?tid=563204)



[ASK]FormatMoney - DiamondGold - 14.02.2015

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.


Re: [ASK]FormatMoney - MBilal - 14.02.2015

Код:
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);