SA-MP Forums Archive
Run Time Error 6 "Invalid Instruction" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Run Time Error 6 "Invalid Instruction" (/showthread.php?tid=378417)



Run Time Error 6 "Invalid Instruction" - HighFlyer - 17.09.2012

Hello there,

I have scripted a command called /gate in which four gates open to allow cars to exit a garage (not the mod garage). The command works fine, and all it uses is CreateDynamicObject and MoveDynamicObject functions from the Streamer Plugin - I don't use OnEnterExitModShop at all in my script, but crashdetect plugin insists that I do, throwing these messages on the console, and subsequently crashing at some stage (happened once, but I'll see if it happens again).

Код:
[18:10:05] Player [SATC]HighFlyer did the command: /gate
[18:10:07] [debug] Run time error 6: "Invalid instruction"
[18:10:07] [debug]   Unknown opcode 0x7800 at address 0xFFFFFFFF
[18:10:07] [debug] AMX backtrace:
[18:10:07] [debug] #0  ???????? in public OnEnterExitModShop () from new.amx
[18:10:07] [debug] Run time error 6: "Invalid instruction"
[18:10:07] [debug]   Unknown opcode 0x7800 at address 0xFFFFFFFF
[18:10:07] [debug] AMX backtrace:
[18:10:07] [debug] #0  ???????? in public OnEnterExitModShop () from new.amx
[18:10:07] [debug] Run time error 6: "Invalid instruction"
[18:10:07] [debug]   Unknown opcode 0x7800 at address 0xFFFFFFFF
[18:10:07] [debug] AMX backtrace:
[18:10:07] [debug] #0  ???????? in public OnEnterExitModShop () from new.amx
[18:10:07] [debug] Run time error 6: "Invalid instruction"
[18:10:07] [debug]   Unknown opcode 0x7800 at address 0xFFFFFFFF
[18:10:07] [debug] AMX backtrace:
[18:10:07] [debug] #0  ???????? in public OnEnterExitModShop () from new.amx
[18:10:07] [debug] Run time error 6: "Invalid instruction"
[18:10:07] [debug]   Unknown opcode 0x7800 at address 0xFFFFFFFF
[18:10:07] [debug] AMX backtrace:
[18:10:07] [debug] #0  ???????? in public OnEnterExitModShop () from new.amx



Re: Run Time Error 6 "Invalid Instruction" - Vince - 17.09.2012

Two seconds after the command. Seems like it may be caused by OnObjectMoved or OnDynamicObjectMoved. Recompile with -d3 flags to be sure.


Re: Run Time Error 6 "Invalid Instruction" - HighFlyer - 17.09.2012

If that's of any help, I've updated y_utils.inc and I've added mGates as an include, but both of the scripts do not contain OnEnterExitModShop. After compiling the script without mGates, the messages from the console were gone.