Crasgdetect
#1

Hy all. I have a problem. :S

Server start:

Код:
[00:05:21] [debug] Run time error 4: "Array index out of bounds"
[00:05:21] [debug]  Accessing element at index 682 past array upper bound 681
[00:05:21] [debug] AMX backtrace:
[00:05:21] [debug] #0 000053c4 in ?? (1140883456, 1121320960, 1117978624, 1086723195, -1360719105, 1120403456) from lvrp.amx
[00:05:21] [debug] #1 00033660 in public zcmd_OnGameModeInit () from lvrp.amx
[00:05:21] [debug] #2 native CallLocalFunction () from samp-server.exe
[00:05:21] [debug] #3 00030904 in public SSCANF_OnGameModeInit () from lvrp.amx
[00:05:21] [debug] #4 00010d78 in public OPVD_OnGameModeInit () from lvrp.amx
[00:05:21] [debug] #5 native CallLocalFunction () from samp-server.exe
[00:05:21] [debug] #6 00010128 in public ScriptInit_OnGameModeInit () from lvrp.amx
[00:05:21] [debug] #7 00000698 in public OnGameModeInit () from lvrp.amx
Someone please?
Reply
#2

Compile with debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
and use version 4.15.1 of crashdetect if you are using an older one.

After done that, it will give more information such as lines and functions' name. Currently, we only know it's a function in OnGameModeInit with 6 parameters.
In that function, the index of an array is greater than it's last valid one. The most common mistake is in loops that it's used "<=" instead of "<" but post the results first to be sure.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)