Problem with bounty
#3

pawn Код:
new str[128];
    if(IsPlayerJustice(playerid) && !IsPlayerJustice(killerid)) {
        BountyKills[killerid]++;
        if(BountyKills[killerid] > 3) {
            if(BountyKills[killerid] == 4) Bounty[killerid] = 10000;
            else Bounty[killerid] += 2500;
            GetName(killerid, killername);
            format(str, sizeof(str), "%s (%d) now has a bounty of $%d", killername, killerid, Bounty[killerid]);
            SendClientMessageToAll(COLOR_YELLOW, str);
        }
    }
    if(Bounty[playerid] > 0) {
        GetName(playerid, playername);
        GivePlayerMoney(killerid, Bounty[playerid]);
        format(str, sizeof(str), "You got $%d bounty reward for killing %s (%d)", Bounty[playerid], playername, playerid);
        SendClientMessage(killerid, COLOR_YELLOW, str);
    }
}


Bounty[playerid] = 0;
BountyKills[playerid] = 0;
Try that, seems like you added a extra bracket..
Reply


Messages In This Thread
Problem with bounty - by Face9000 - 18.12.2010, 19:40
Re: Problem with bounty - by rs.pect - 18.12.2010, 20:02
Re: Problem with bounty - by Lorenc_ - 18.12.2010, 20:06
Re: Problem with bounty - by Face9000 - 18.12.2010, 20:08
Re: Problem with bounty - by rs.pect - 18.12.2010, 20:11
Re: Problem with bounty - by Face9000 - 18.12.2010, 20:18
Re: Problem with bounty - by rs.pect - 18.12.2010, 20:36
Re: Problem with bounty - by Face9000 - 18.12.2010, 20:43
Re: Problem with bounty - by Lorenc_ - 18.12.2010, 20:58
Re: Problem with bounty - by Face9000 - 18.12.2010, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)