Error code 0x0, at main(). - 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: Error code 0x0, at main(). (
/showthread.php?tid=642329)
Error code 0x0, at main(). -
Meller - 28.09.2017
What's wrong with this piece of code?
PHP Code:
#if !defined main
main() {
Break(true);
}
#endif
Code:
[debug] Run time error 6: "Invalid instruction"
[debug] Unknown opcode 0x0 at address 0x000008E0
[debug] AMX backtrace:
[debug] #0 000008e0 in main () from freeroam.amx
Script[gamemodes/freeroam.amx]: Run time error 6: "Invalid instruction"
PS; it's not the Break(x); Don't bother replying if you believe that's the case, thx.