Crashdetector help
#2

It looks as-if your not checking if "killerid" is INVALID_PLAYER_ID under OnPlayerDeath and then using "killerid" as an index to an array.

EG,
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{

    //imagine player did /kill command (or equivalent)
    //killerid would be equal to INVALID_PLAYER_ID which is 65536 (0xFFFF)

    //then this
    gPlayerData[ killerid ][ kills ]++;

    //is the same as this
    gPlayerData[ 65536 ][ kills ]++;
    return 1;
}
Could be something else but thats what i think it is.
Reply


Messages In This Thread
Crashdetector help - by Harry_F. - 08.04.2013, 13:42
Re: Crashdetector help - by iggy1 - 08.04.2013, 14:01
Re: Crashdetector help - by Harry_F. - 11.04.2013, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)