Crash Detect error problem
#1

hej
i was checking in my server and i saw that crash detecter is giving me this error

Код:
[11:28:29] [debug] #0 0017d254 in public OnVehicleStreamIn (959, 15) from k.amx
[11:28:33] [debug] Run time error 4: "Array index out of bounds"
[11:28:33] [debug]  Accessing element at index 1001 past array upper bound 1000
here is the onvehiclestreamin

Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
	if(Vehicles[vehicleid][tmplocked] == 1 && Vehicles[vehicleid][tmplockedby] != forplayerid) SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
	else SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 0);
}
Reply
#2

Show us your Enum.
Reply
#3

A part of the report is clearly missing for OnVehicleStreamIn issue. You got two different run time errors and you posted half from the one and half from the other.
Reply
#4

Actually thats all i got from it
and others are those.

Код:
[15:22:10] [debug] #0 001a28fc in ?? (19, 0) from k.amx
[15:22:10] [debug] #1 0002099c in public OnPlayerKeyStateChange (19, 16, 0) from k.amx
[15:22:10] [debug] Run time error 4: "Array index out of bounds"
[15:22:10] [debug]  Accessing element at index 1001 past array upper bound 1000
[15:22:10] [debug] AMX backtrace:
[15:22:10] [debug] #0 0001d12c in public OnPlayerKeyStateChange (9, 132, 134) from k.amx
[15:22:10] [debug] Run time error 4: "Array index out of bounds"
[15:22:10] [debug]  Accessing element at index 1001 past array upper bound 1000
[15:22:10] [debug] AMX backtrace:
[15:22:10] [debug] #0 0001d12c in public OnPlayerKeyStateChange (9, 132, 134) from k.amx
Reply
#5

Above this line:
pawn Код:
[11:28:29] [debug] #0 0017d254 in public OnVehicleStreamIn (959, 15) from k.amx
describes which run time error is and more information such as the index if it's run time error 4. You'll need to find this otherwise we don't know what we're looking for in that callback.

The other two lines you posted:
pawn Код:
[11:28:33] [debug] Run time error 4: "Array index out of bounds"
[11:28:33] [debug]  Accessing element at index 1001 past array upper bound 1000
are part of your last post which happens in OnPlayerKeyStateChange and in a function that is called in OnPlayerKeyStateChange as well (two different though).

In order to make it easier for both of us, create a file called pawn.cfg (if you can't create the file with that extension, copy server.cfg from the main directory and rename it) into pawno folder and write -d3 in it. Save it and re-compile your scripts. Run the server and if you get reports from crashdetect, post them all.
Reply
#6

Show the code not only the errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)