SA-MP Forums Archive
Run time error 6. - 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. (/showthread.php?tid=523537)



Run time error 6. - gtasarules14 - 02.07.2014

I downloaded Crashdetect, and when I started my server to see why it kept crashing on the host
[debug] Run time error 6: "Invalid instruction"
[12:54:31] [debug] Unknown opcode 0x0 at address 0x00000001
[12:54:31] [debug] AMX backtrace:
[12:54:31] [debug] #0 00000001 in public Itter_OnGameModeInit () from ArmyLife.amx
[12:54:31] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe
[12:54:31] [debug] #2 00001868 in public Streamer_OnGameModeInit () from ArmyLife.amx
[12:54:31] [debug] #3 native CallLocalFunction () [00472ad0] from samp-server.exe
[12:54:31] [debug] #4 00000a8c in public zcmd_OnGameModeInit () from ArmyLife.amx
[12:54:31] [debug] #5 native CallLocalFunction () [00472ad0] from samp-server.exe
[12:54:31] [debug] #6 000001e4 in public OnGameModeInit () from ArmyLife.amx

This is what I got. The server runs fine locally, but when you start it on the host, it crashes automatically.
How would I fix this?


Re: Run time error 6. - greentarch - 02.07.2014

Quote:
Originally Posted by gtasarules14
Посмотреть сообщение
I downloaded Crashdetect, and when I started my server to see why it kept crashing on the host
[debug] Run time error 6: "Invalid instruction"
[12:54:31] [debug] Unknown opcode 0x0 at address 0x00000001
[12:54:31] [debug] AMX backtrace:
[12:54:31] [debug] #0 00000001 in public Itter_OnGameModeInit () from ArmyLife.amx
[12:54:31] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe
[12:54:31] [debug] #2 00001868 in public Streamer_OnGameModeInit () from ArmyLife.amx
[12:54:31] [debug] #3 native CallLocalFunction () [00472ad0] from samp-server.exe
[12:54:31] [debug] #4 00000a8c in public zcmd_OnGameModeInit () from ArmyLife.amx
[12:54:31] [debug] #5 native CallLocalFunction () [00472ad0] from samp-server.exe
[12:54:31] [debug] #6 000001e4 in public OnGameModeInit () from ArmyLife.amx

This is what I got. The server runs fine locally, but when you start it on the host, it crashes automatically.
How would I fix this?
Do you use any plugins?
What OS are you running in local server? Windows?
Your host is probably using Linux as a host, as it's more common to use Linux for a host server.

If so, make sure you have .so files for your plugin, e.g for
pawn Код:
streamer.dll // dll for Windows?
You have
pawn Код:
streamer.so // for Linux
And change in server.cfg
pawn Код:
plugins streamer myplugin blablabla
to
pawn Код:
plugins streamer.so myplugin.so blablabla.so



Re: Run time error 6. - gtasarules14 - 02.07.2014

I correctly have the plugins named like that, the server still crashes on the host, the plugins and gamemode load perfectly, but it crashes right after starting. Ive tried this on a different host too, same result. I am running in a windows OS locally, the host uses linux.


Re: Run time error 6. - greentarch - 02.07.2014

Quote:
Originally Posted by gtasarules14
Посмотреть сообщение
I correctly have the plugins named like that, the server still crashes on the host, the plugins and gamemode load perfectly, but it crashes right after starting. Ive tried this on a different host too, same result. I am running in a windows OS locally, the host uses linux.
Hmmm.. I don't really know but I'll try to help.
Did you copy+paste these files to your host (important ones, in my opinion):

> .amx of your Filterscripts
> Includes [yes, all of them]
> Plugins [yes, all of them]
> .amx of your Gamemode
> server.cfg (and make sure you've set your own RCON password)


Sorry if I didn't help that much...


Re: Run time error 6. - gtasarules14 - 02.07.2014

Oh wait, I did not include the Includes file, Quick question, am I supposed to add Streamer and Sscanf to that too?
Or is that only for Pawno?
And I appreciate you answering


Re: Run time error 6. - greentarch - 02.07.2014

Quote:
Originally Posted by gtasarules14
Посмотреть сообщение
Oh wait, I did not include the Includes file, Quick question, am I supposed to add Streamer and Sscanf to that too?
Or is that only for Pawno?
And I appreciate you answering
Paste your includes too.
Yes, all your includes.

Plugins usually have 2 files that is put on a different folder
First are the .dll files and .so files - which should be put in Plugins folder.
Second are the .inc files - which belongs in pawno/includes folder.

I think they should be put there, because the last time I hosted a server and it runs properly (a linux host, apparently) it runs when I did all those things.


Re: Run time error 6. - gtasarules14 - 02.07.2014

Thanks for your help, but the server still crashes on the host, Still repped for helping, if you got any other suggestions, please post them. Thanks.