Quote:
Originally Posted by Lynn
You aren't actually giving the player any money.
Try this;
pawn Код:
stock GiveZaiatMoney(playerid, amount) { new string[128]; new cash = GetPlayerMoney(playerid); if(amount < 0) format(string, sizeof(string), "~r~-$%d", amount*-1); else if(amount > 0) format(string, sizeof(string), "~g~+$%d", amount); GameTextForPlayer(playerid, string, 3000, 1); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); GivePlayerMoney(playerid, amount); PlayerInfo[playerid][pMoney] = cash; return 1; }
|
Then there's no point of server-sided money if you use
GivePlayerMoney then since it'll be a normal cash into your money bar..