06.09.2015, 20:23
Quote:
|
Hi,
Great! Now you should compile your GameMode in debug mode so CrashDetect can output more useful information (like the exact line on which the error occurs). To do so you need to pass the flag "-d3" to the Pawn compiler, you can easily do this by creating a "pawn.cfg" file inside the Pawno folder with the following contents: Код:
-r -O0 -d3 ![]() |
pawn Код:
[21:23:08] [debug] Run time error 4: "Array index out of bounds"
[21:23:08] [debug] Accessing element at negative index -1
[21:23:08] [debug] AMX backtrace:
[21:23:08] [debug] #0 003a3bb8 in public cmd_refuel (playerid=0, params[]=@0x0a0f87a4 "") at C:\Users\Conor\Desktop\restore\LGRP\gamemodes\LGRP.pwn:59885
[21:23:08] [debug] #1 native CallLocalFunction () [00474110] from samp-server.exe
[21:23:08] [debug] #2 0000edc0 in ?? (... <2 arguments>) at C:\Users\Conor\Desktop\restore\LGRP\pawno\include\zcmd.inc:102
[21:23:08] [debug] #3 00008f88 in public OnPlayerCommandText (playerid=0, cmdtext[]=@0x0a0f8784 "/refuel") at C:\Users\Conor\Desktop\restore\LGRP\pawno\include\YSI\y_hooks/impl.inc:918



