25.12.2013, 10:05
Quote:
If I am not mistaken you should put nativechecker as last in line of the plugins.
|
Quote:
[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] |
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.