15.06.2013, 15:40
Here at OnPlayerDeath you're incrementing the kills of playerid instead of killer id.
Shouldn't that be like this:
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
if( killerid != INVALID_PLAYER_ID )
{
PlayerInfo[ playerid ][ pKills ] ++;
}
PlayerInfo[ playerid ][ pDeaths ] ++;
return 1;
}
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
if( killerid != INVALID_PLAYER_ID )
{
PlayerInfo[ killerid ][ pKills ] ++;
}
PlayerInfo[ playerid ][ pDeaths ] ++;
return 1;
}