OPlayerDeath BUG
#3

You're problem seems to be that you're using your "killerid" variables/functions while "killerid" equals INVALID_PLAYER_ID.
This is how it should be:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    if(killerid != INVALID_PLAYER_ID) {
        GivePlayerMoney(killerid, 1000);
        SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
        pInfo[killerid][Kills]++;
    }
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    pInfo[playerid][Deaths]++;
    return 1;
}
Reply


Messages In This Thread
OPlayerDeath BUG - by Beljulji - 27.10.2012, 18:33
Re: OPlayerDeath BUG - by NewerthRoleplay - 27.10.2012, 18:45
Re: OPlayerDeath BUG - by Catalyst- - 27.10.2012, 18:49
Re: OPlayerDeath BUG - by Beljulji - 27.10.2012, 18:50
Re: OPlayerDeath BUG - by NewerthRoleplay - 28.10.2012, 08:07

Forum Jump:


Users browsing this thread: 1 Guest(s)