Run Time Error 6 "Invalid Instruction"
#1

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
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)