OnPlayerDeath debug error
#1

Guys,
Another problem. The crashdetect plugin is reading a Debug on OnPlayerDeath. I dont see whats wrong here. The onplayedeath callback consists the Register and a piece from the Spectate system.

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    PlayerInfo[killerid][pKills]++;
    PlayerInfo[playerid][pDeaths]++;
    if(IsBeingSpeced[playerid] == 1)//If the player being spectated, dies, then turn off the spec mode for the spectator.
    {
        foreach(Player,i)
        {
            if(spectatorid[i] == playerid)
            {
                TogglePlayerSpectating(i,false);// This justifies what's above, if it's not off then you'll be either spectating your connect screen, or somewhere in blueberry (I don't know why)
            }
        }
    }
    return 1;
    }
Reply


Messages In This Thread
OnPlayerDeath debug error - by Threshold - 03.12.2012, 15:49
Re: OnPlayerDeath debug error - by Konstantinos - 03.12.2012, 15:51
Re: OnPlayerDeath debug error - by Threshold - 03.12.2012, 15:53
Re: OnPlayerDeath debug error - by Konstantinos - 03.12.2012, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)