PDA

Просмотр полной версии : [Вопрос] Помогите исправить debug в логе



Steven_Davidson
22.09.2014, 00:34
вот что пишет в логе:

[23:20:29] [debug] Run time error 4: "Array index out of bounds"
[23:20:29] [debug] Accessing element at index 65535 past array upper bound 299
[23:20:29] [debug] AMX backtrace:
[23:20:29] [debug] #0 000dba50 in public OnPlayerDeath (playerid=24, killerid=65535, reason=255) at C:\Documents and Settings\Андрей\Рабочий стол\все\new.pwn:16340
[23:20:29] [death] Franchesko_Holland died 255

Salvacore
22.09.2014, 01:36
Кинь строку что-ли.
И паблик за одно.

DeimoS
22.09.2014, 08:34
В OnPlayerDeath нужно поместить все массивы с killerid в проверку

if(killerid != 65535)
{
//массивы для killerid
}