SA-MP Forums Archive
Server crashing - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Server crashing (/showthread.php?tid=79391)



Server crashing - Danoz - 28.05.2009

I've started to make my own gamemode recently and when trying to run it, it takes about 1 minute to crash.

I've been getting this message in my crashinfo.txt file.
Код:
Exception At Address: 0x0047CDC5



Registers:

EAX: 0x68207325	EBX: 0x026A4073	ECX: 0x7FFFFFFE	EDX: 0x0012F280

ESI: 0x0012F280	EDI: 0x0012F4B2	EBP: 0x0012EF34	ESP: 0x0012EEA8

EFLAGS: 0x00010202



Stack:
And when running samp-server.exe it shows this error message..


(Yes i've searched but found nothing on this particular problem. If I missed something, feel free to tell me)


Re: Server crashing - Correlli - 28.05.2009

Put:
pawn Код:
main()
{
}
into your script, before OnGameModeInit callback.


Re: Server crashing - Danoz - 28.05.2009

Can you please show me an example?


Re: Server crashing - [NL]Bank - 28.05.2009

Код:
main()
{
  print("Ohai");
}

public OnGameModeInit()
{
	return 1;
}



Re: Server crashing - JoeDaDude - 28.05.2009

pawn Код:
#include <a_samp>

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

public OnGameModeInit()
{
Theres an example,
As posted by BlackBank3 when i clicked post button :P


Re: Server crashing - [NL]Bank - 28.05.2009

lol :P


Re: Server crashing - Danoz - 28.05.2009

Thanks for the help, all working now.


Re: Server crashing - Danoz - 28.05.2009

Okay, it must not have been that. There must be another problem.
I'm getting the same error message as above (my first post) except the cmd-looking samp-server.exe shows everythings fine. It's only in the crashlog.

Just testing it and it says "Game mode restarting.." Then it says that it's trying to reconnect and failing.

(Shizzle, double post. For that i'm sorry.)