- Регистрация
- 30 Мар 2016
- Сообщения
- 197
- Лучшие ответы
- 3
- Репутация
- 15
Привет всем. Мне нужна помощь.
Выходят такие ошибки:
Выходят такие ошибки:
Строка, где ошибка:[02:00:04] [debug] Run time error 4: "Array index out of bounds"
[02:00:04] [debug] Attempted to read/write array element at negative index -1
[02:00:04] [debug] AMX backtrace:
[02:00:04] [debug] #0 0033b52c in public OnPlayerKeyStateChange (playerid=1, newkeys=1, oldkeys=0) :53437
PHP:
if (CarsInfo[vehicleid-1][vNeon] == 0) - Вот тут и выходит{
DestroyObject(neons[vehicleid][0]);
DestroyObject(neons[vehicleid][1]);
neons[vehicleid][0] = -1;
neons[vehicleid][1] = -1;