SA-MP Forums Archive
My server crashe's - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: My server crashe's (/showthread.php?tid=355559)



My server crashe's - kidor - 30.06.2012

I put the crashdetector on my server, and i get this, how can i fix it ? My server shut's down.
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:
and

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:
This is my OnVehicleStreamIn
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(CarInfo[vehicleid][cLock] == 1)
    {
        SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1);
    }
    return 1;
}



Re: My server crashe's - kidor - 30.06.2012

Someone ?


Re: My server crashe's - Dan.. - 30.06.2012

Post the definition of CarInfo.


Re: My server crashe's - kidor - 30.06.2012

The thing with OnVehicleStreamIn don't shut's my server off, the

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:
does