vadimka93
Новичок
Краш в моде
Когда включаю сервер вот что выдает crashdetect в логи:
В паблике OnGameModeInit:
Помогите исправить!!
c меня +
Когда включаю сервер вот что выдает crashdetect в логи:
PHP:
[17:21:54] [debug] Run time error 4: "Array index out of bounds"
[17:21:54] [debug] Accessing element at index 1 past array upper bound 0
[17:21:54] [debug] AMX backtrace:
[17:21:54] [debug] #0 0009c918 in ?? () from Test.amx
[17:21:54] [debug] #1 00085264 in public Itter_OnGameModeInit () from Test.amx
[17:21:54] [debug] #2 native CallLocalFunction () [00472c00] from samp-server.exe
[17:21:54] [debug] #3 00006470 in public Streamer_OnGameModeInit () from Test.amx
[17:21:54] [debug] #4 native CallLocalFunction () [00472c00] from samp-server.exe
[17:21:54] [debug] #5 000012e4 in public OnGameModeInit () from Test.amx
PHP:
public OnGameModeInit()
{
HaveConnect = 0; if(HaveConnect == 0) {}
new string[128];
new string1[MAX_PLAYER_NAME];
for(new c=0;c<CAR_AMOUNT;c++)
{
Gas[c] = GasMax;
}
c меня +
Последнее редактирование:
