with. pwn all right, but unknown gamemode
#8

Quote:
Originally Posted by TheOriginal1337
Посмотреть сообщение
If I am not mistaken you should put nativechecker as last in line of the plugins.
We do not use the functions for crashdetect, so there's not any problem with that.

Quote:
Originally Posted by MattEvans
Посмотреть сообщение
[22:28:44] [debug] Run time error 4: "Array index out of bounds"
[22:28:44] [debug] Accessing element at index 65535 past array upper bound 1999
[22:28:44] [debug] AMX backtrace:
[22:28:44] [debug] #0 00109888 in ?? () from modas.amx
[22:28:44] [debug] #1 00013b2c in public OnGameModeInit () from modas.amx
[22:28:44]
The only known thing is that something (probably a function that gets called in OnGameModeInit) caused a runtime error.

It has to do with MAX_VEHICLES (2000 - last valid index 1999) and INVALID_VEHICLE_ID (65535). When you create/add a vehicle, according to SA-MP Wiki, it returns INVALID_VEHICLE_ID (65535) if vehicle was not created (vehicle limit reached or invalid vehicle model ID passed). After that, it was used inside an array [] and caused the index out of bounds runtime error.

Compile with debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
and let's hope it will print the line was caused. Otherwise, you'll need to post OnGameModeInit.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)