Debug [WCRP Script]
#1

I get this error message. It's like script is working, I logged in , registered but not spawning. I found this error in server log.
[13:17:37] [debug] Run time error 4: "Array index out of bounds"
[13:17:37] [debug] Accessing element at index 110 past array upper bound 78
[13:17:37] [debug] AMX backtrace:
[13:17:37] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:37] [debug] Run time error 4: "Array index out of bounds"
[13:17:37] [debug] Accessing element at index 99 past array upper bound 78
[13:17:37] [debug] AMX backtrace:
[13:17:37] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:37] [debug] Run time error 4: "Array index out of bounds"
[13:17:37] [debug] Accessing element at index 101 past array upper bound 78
[13:17:37] [debug] AMX backtrace:
[13:17:37] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:37] [debug] Run time error 4: "Array index out of bounds"
[13:17:37] [debug] Accessing element at index 111 past array upper bound 78
[13:17:37] [debug] AMX backtrace:
[13:17:37] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:37] [debug] Run time error 4: "Array index out of bounds"
[13:17:37] [debug] Accessing element at index 95 past array upper bound 78
[13:17:37] [debug] AMX backtrace:
[13:17:37] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:37] [debug] Run time error 4: "Array index out of bounds"
[13:17:37] [debug] Accessing element at index 84 past array upper bound 78
[13:17:37] [debug] AMX backtrace:
[13:17:37] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:37] [debug] Run time error 4: "Array index out of bounds"
[13:17:37] [debug] Accessing element at index 84 past array upper bound 78
[13:17:37] [debug] AMX backtrace:
[13:17:37] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:37] [debug] Run time error 4: "Array index out of bounds"
[13:17:37] [debug] Accessing element at index 79 past array upper bound 78
[13:17:37] [debug] AMX backtrace:
[13:17:37] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:37] [debug] Run time error 4: "Array index out of bounds"
[13:17:37] [debug] Accessing element at index 80 past array upper bound 78
[13:17:37] [debug] AMX backtrace:
[13:17:37] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:37] [connection] 117.197.96.108:58235 requests connection cookie.
[13:17:38] [debug] Run time error 4: "Array index out of bounds"
[13:17:38] [debug] Accessing element at index 89 past array upper bound 78
[13:17:38] [debug] AMX backtrace:
[13:17:38] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:38] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:38] [debug] Run time error 4: "Array index out of bounds"
[13:17:38] [debug] Accessing element at index 91 past array upper bound 78
[13:17:38] [debug] AMX backtrace:
[13:17:38] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:38] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:38] [debug] Run time error 4: "Array index out of bounds"
[13:17:38] [debug] Accessing element at index 84 past array upper bound 78
[13:17:38] [debug] AMX backtrace:
[13:17:38] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:38] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:38] [debug] Run time error 4: "Array index out of bounds"
[13:17:38] [debug] Accessing element at index 89 past array upper bound 78
[13:17:38] [debug] AMX backtrace:
[13:17:38] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:38] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx
[13:17:38] [debug] Run time error 4: "Array index out of bounds"
[13:17:38] [debug] Accessing element at index 91 past array upper bound 78
[13:17:38] [debug] AMX backtrace:
[13:17:38] [debug] #0 002a3588 in ?? () from WCRP.amx
[13:17:38] [debug] #1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx




Any help will be appreciated
Reply
#2

First off, post your error lines inside a [code] box.

It looks a bit like more objects are loaded than the array can hold. But that's only a guess!

You should recompile your script with -d3 flags, then see which lines are producing the error.
Then you can show us the relevant lines so we can actually help you.
Reply
#3

Quote:
Originally Posted by NaS
Посмотреть сообщение
First off, post your error lines inside a [code] box.

It looks a bit like more objects are loaded than the array can hold. But that's only a guess!

You should recompile your script with -d3 flags, then see which lines are producing the error.
Then you can show us the relevant lines so we can actually help you.
Recompile with -d3 flags? I didn't get you. Be more specific please?
Reply
#4

PHP код:
[13:17:37] [debugRun time error 4"Array index out of bounds"
[13:17:37] [debugAccessing element at index 110 past array upper bound 78
[13:17:37] [debugAMX backtrace:
[
13:17:37] [debug#0 002a3588 in ?? () from WCRP.amx
[13:17:37] [debug#1 002a1c8c in public OnLoadHouseObjects () from WCRP.amx 
there are all needed information.
Reply
#5

Quote:
Originally Posted by Rustin
Посмотреть сообщение
Recompile with -d3 flags? I didn't get you. Be more specific please?
You need to set your PAWN Compiler to include debug symbols and other info into the AMX, such as line counts. That way you see where an error appeared in the script.

Just create a file called "pawn.cfg" where your pawncc.exe is located, with the content "-d3" (without ").

If you use PAWNO you can set it up there as well, but this works for any IDE.


However some info is already inside the error log, if the function OnLoadHouseObjects isn't too huge you can look for an error there or post it here.
Reply
#6

It's already stated on that error log there that your array is bigger than what is indicated on OnLoadHouseObjects.

Make sure that wherever those arrays are coming from are set to the max that is defined on your OnLoadHouseObjects.

or just stop your loop from sending anything on or before 78 coz that's the problem your loop is continuing it's job past the max you set on your OnLoadHouseObjects.

or you can try updating your crashdetect include and plugin to the latest.

It might be giving out mistaken readings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)