PDA

Просмотр полной версии : [Вопрос] OnPlayerDeath



DmX
31.01.2016, 01:49
if(BizWarFrag[PlayerInfo[killerid][pMemb]-9] == PlayerInfo[playerid][pMemb])
{
BizWarKill[PlayerInfo[killerid][pMemb]-9]++;
}


[00:37:09] [debug] Run time error 4: "Array index out of bounds"
[00:37:09] [debug] Accessing element at negative index -8
[00:37:09] [debug] AMX backtrace:
[00:37:09] [debug] #0 000497b0 in public OnPlayerDeath (playerid=0, killerid=1, reason=24) at C:\Users\1\Desktop\pwn RPG\gamemodes\pwn.pwn:3103

Не пойму в чем проблема

- - - Добавлено - - -

Исправил, поставил проверки на банды и мафии.