Money bug ( GTA )
#3

Fix !

Old
pawn Код:
stock GiveZaiatMoney(playerid, amount)
{
    new string[128];
    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);
    return 1;
}
New
pawn Код:
stock GiveZaiatMoney(playerid, amount)
{
    new string[128];
    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);
    PlayerInfo[playerid][pMoney] = PlayerInfo[playerid][pMoney]+amount;
    GivePlayerMoney(playerid,amount);
    return 1;
}
Reply


Messages In This Thread
Money bug ( GTA ) - by morocco - 06.07.2013, 17:30
Re: Money bug ( GTA ) - by Konstantinos - 06.07.2013, 17:33
Re : Money bug ( GTA ) - by morocco - 06.07.2013, 17:55
Re: Money bug ( GTA ) - by Konstantinos - 06.07.2013, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)