30.06.2012, 14:11
I put the crashdetector on my server, and i get this, how can i fix it ? My server shut's down.
and
This is my OnVehicleStreamIn
pawn Код:
[18:18:51] [debug] Server crashed while executing GF.amx
[18:18:51] [debug] AMX backtrace:
[18:18:51] [debug] #0 00050000 in ?? () from GF.amx
[18:18:51] [debug] #1 000a57ec in ?? () from GF.amx
[18:18:51] [debug] #2 00000074 in public JBC_OnDialogResponse () from GF.amx
[18:18:51] [debug] #3 00004670 in public OnDialogResponse () from GF.amx
[18:18:51] [debug] System backtrace:
pawn Код:
[18:18:15] [debug] #0 000894d8 in public OnVehicleStreamIn () from GF.amx
[18:18:15] [debug] Run time error 4: "Array index out of bounds"
[18:18:15] [debug] Accessing element at index 415 past array upper bound 301
[18:18:15] [debug] AMX backtrace:
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(CarInfo[vehicleid][cLock] == 1)
{
SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1);
}
return 1;
}