OnPlayerDeath shows something with crashdetect
#1

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == playerid)
    {
        pInfo[playerid][Deaths]++;
    }
    else if(killerid == INVALID_PLAYER_ID)
    {
        pInfo[playerid][Deaths]++;
    }
    else
   
    GivePlayerMoney(killerid, 500);
    SetPlayerScore(killerid, GetPlayerScore(killerid)+10);

    SetPlayerScore(playerid, GetPlayerScore(playerid)-10);

    SendDeathMessage(killerid, playerid, reason);

    pInfo[killerid][Kills]++;
    pInfo[playerid][Deaths]++;
   
    return 1;
}
Код:
[19:33:48] [debug] Run time error 4: "Array index out of bounds"
[19:33:48] [debug]  Accessing element at index 65535 past array upper bound 499
[19:33:48] [debug] AMX backtrace:
[19:33:48] [debug] #0 000212b8 in public OnPlayerDeath () from gangwars.amx
[19:33:48] [death] MarkoN died 255
Reply


Messages In This Thread
OnPlayerDeath shows something with crashdetect - by MarkoN - 19.09.2012, 17:22
Re: OnPlayerDeath shows something with crashdetect - by ViniBorn - 19.09.2012, 17:25
Re: OnPlayerDeath shows something with crashdetect - by Glint - 19.09.2012, 17:27
Re: OnPlayerDeath shows something with crashdetect - by MarkoN - 19.09.2012, 17:29
Re: OnPlayerDeath shows something with crashdetect - by Lordzy - 19.09.2012, 17:29
Re: OnPlayerDeath shows something with crashdetect - by Glint - 19.09.2012, 17:32
Re: OnPlayerDeath shows something with crashdetect - by SuperViper - 19.09.2012, 17:35

Forum Jump:


Users browsing this thread: 2 Guest(s)