Help, server unknown crash problem.
#1

Hello, I need help with this problem. After today I added my server to my host, but after starting it, the server keeps going offline, I have posted to their support, but I have tried another host and the same problem happens.

My plugins load fine and they are wrote correctly, the server has no error 19, it loads the gamemode correctly.
I was told to download crash detect and this is what I get when I start it, Note, the server does work fine running on a home server.

[22:39:40] [debug] Run time error 6: "Invalid instruction"
[22:39:40] [debug] Unknown opcode 0x0 at address 0x00000001
[22:39:40] [debug] AMX backtrace:
[22:39:40] [debug] #0 00000001 in public Itter_OnGameModeInit () from ArmyLife.amx
[22:39:40] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe
[22:39:40] [debug] #2 00001868 in public Streamer_OnGameModeInit () from ArmyLife.amx
[22:39:40] [debug] #3 native CallLocalFunction () [00472ad0] from samp-server.exe
[22:39:40] [debug] #4 00000a8c in public zcmd_OnGameModeInit () from ArmyLife.amx
[22:39:40] [debug] #5 native CallLocalFunction () [00472ad0] from samp-server.exe
[22:39:40] [debug] #6 000001e4 in public OnGameModeInit () from ArmyLife.amx
[22:39:40]

I do not know if this is causing it, but is there anyway to fix this problem?

From the look of it, it looks like there is a problem in the script,I just can not figure out where, as I have added other gamemodes I have made and they worked fine. I would appreciate it greatly if someone could help me with this problem
Reply
#2

I think it has to do with your includes/plugins.

What OS is your desktop and what OS is your host?
Reply
#3

My OS is Windows, and My hosts OS is Linux.

I do have the Linux plugins on the host such as streamer.so and sscanf.so
Reply
#4

pawn Код:
[22:39:40] [debug] #0 00000001 in public Itter_OnGameModeInit () from ArmyLife.amx
[22:39:40] [debug] #2 00001868 in public Streamer_OnGameModeInit () from ArmyLife.amx
[22:39:40] [debug] #4 00000a8c in public zcmd_OnGameModeInit () from ArmyLife.amx
[22:39:40] [debug] #6 000001e4 in public OnGameModeInit () from ArmyLife.amx
Notice how it specifies include/plugin directories infront of _OnGameModeInit?

Anyway, I did some research on the error code (not really research but whatever) and the issue mainly seemed to be caused by either param or callback misplacement.

Can I see OnGameModeInit callback?

EDIT: Do you have main(); ontop of your script?

If you don't, add it. If you do, do you use the callbacks at all? If you closed the function using ";", please add empty callbacks instead of just closing it with ";".
Reply
#5

main()
{
print("\n----------------------------------");
print("Army Life by gtasarules14");
print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
Objects are here. not gonna post all of it
return 1;
}

Alright so now what would I do
Reply
#6

Do you stream objects? If so, what does your syntax look like?
Reply
#7

Yes, I do.

It looks like this CreateObject(3932, 1471.65039, -1641.69519, 14.72930, 0.00000, 0.00000, -55.00000);
Reply
#8

Is there anything else under OnGameModeInit besides the objects?
Reply
#9

CreateVehicle
AddPlayerClass
AddStaticVehicle
CreateRentalVehicle
Create3DTextLabel
DisableInteriorEnterExits();

These are all under OnGameModeInit
Reply
#10

To help narrow down the error you can compile your mode with a -d3 flag then it will show you the lines it happens on in the error.

You can read more about it here and learn how to do it .... https://github.com/Zeex/samp-plugin-...ith-debug-info
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)