[PLEASE HELP]My server stops running when I try to log in
#1

Quote:
Originally Posted by LTomi
My gamemode have been working well, but now it has a serious problem. I've been scripting some new dialogs and now it crashes the whole server when I try to log in. Here is my crashinfo.txt file:

Код:
SA-MP Server: 0.3a R7



Exception At Address: 0x00471DD0



Registers:

EAX: 0x00000000	EBX: 0x0012F524	ECX: 0x00481186	EDX: 0x00000001

ESI: 0x01D35505	EDI: 0x00000000	EBP: 0x0012F548	ESP: 0x0012F50C

EFLAGS: 0x00010206



Stack:

+0000: 0x00D5A1B8  0x00000000  0x004671EB  0x0012F524

+0010: 0x00000000  0x00000000  0x594E4F4B  0x454E3156

+0020: 0x00460056  0x00D5A1B8  0x01415188  0x0080745C

+0030: 0x00000000  0x01D2A348  0x01C1EBC4  0x01344D28

+0040: 0x00402C20  0x00D5A1B8  0x01C1E7B4  0x0012F854

+0050: 0x00D5A1B8  0x00000000  0x00000000  0x0080745C

+0060: 0x0080785C  0x0080962C  0x0080B438  0x0080745C

+0070: 0x0080AFA0  0x0080745C  0x012F21D4  0x01415188

+0080: 0x00000000  0x012F0020  0x00122FB4  0x0046143C

+0090: 0x00D5A1B8  0x0012F5E8  0x0000005A  0x00D5A1B8

+00A0: 0x00000000  0x00D5A1B8  0x00000002  0x00D5A1B8

+00B0: 0x00000001  0x00D5A1B8  0xFFFFFFFF  0x00D5A1B8

+00C0: 0x0012F604  0x0012F5EC  0x0012F738  0x01C1C5C4

+00D0: 0x00000000  0x00D5A1B8  0x00000000  0x00000000

+00E0: 0x01C1C5C4  0x0047ED27  0x0000005A  0x00000002

+00F0: 0x00000001  0xFFFFFFFF  0x0080743C  0x0012F860

+0100: 0x00A6AE40  0xFBDB4201  0x010701DB  0x0012FFFF

+0110: 0x00000002  0x00000070  0x00000070  0x00000068

+0120: 0x0012F860  0x00000000  0x00000020  0x0012F868

+0130: 0x6F636E00  0x676E696D  0x6E6F6320  0x7463656E
Every ideas are welcome. Thanks!
Reply
#2

Would you mind to post your problem from the script?
Reply
#3

This is my question, I don't know what is the problem. The pawno says that my script is alright when I compile it.
Reply
#4

check the FS u putted in .cfg try to delete the last one u putted and try to enter if it loged in and played so the proplem in the FS if not then dunno
Reply
#5

Well... You should show me the dialog menu you made.
And what gm you have?
Reply
#6

I have an edited Los Angeles Roleplay, but I don't know where the problem is so I can't show you.
Reply
#7

add prints at OnGameModeInit and all other OnInit callbacks. then look at it and go to the place where it last logged something, after that u got ur problem.
Reply
#8

I put prints to every parts of the script and I can see where the problem is, but I don't know what it is. When you type your password into the login dialog in the OnPlayerConnect and press enter, the server successfully redirects you to OnPlayerLogin and it starts to load your userfile. It stucks and crashes the server at the end of the userfile loading, where it should load the saved names and the phone numbers for your phonebook. The "Before phonebook loaded." print can be seen in the server log, but the "After phonebook loaded." print is not, so the server crashes here. I can see no problems here, can you?

pawn Код:
print("Before phonebook loaded.");
                if( strcmp( key , "Konyv1Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv1Nev", val); }
                if( strcmp( key , "Konyv1Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv1Szam", strval(val)); }
                if( strcmp( key , "Konyv2Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv2Nev", val); }
                if( strcmp( key , "Konyv2Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv2Szam", strval(val)); }
                if( strcmp( key , "Konyv3Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv3Nev", val); }
                if( strcmp( key , "Konyv3Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv3Szam", strval(val)); }
                if( strcmp( key , "Konyv4Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv4Nev", val); }
                if( strcmp( key , "Konyv4Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv4Szam", strval(val)); }
                if( strcmp( key , "Konyv5Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv5Nev", val); }
                if( strcmp( key , "Konyv5Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv5Szam", strval(val)); }
                if( strcmp( key , "Konyv6Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv6Nev", val); }
                if( strcmp( key , "Konyv6Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv6Szam", strval(val)); }
                if( strcmp( key , "Konyv7Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv7Nev", val); }
                if( strcmp( key , "Konyv7Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv7Szam", strval(val)); }
                if( strcmp( key , "Konyv8Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv8Nev", val); }
                if( strcmp( key , "Konyv8Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv8Szam", strval(val)); }
                if( strcmp( key , "Konyv9Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv9Nev", val); }
                if( strcmp( key , "Konyv9Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv9Szam", strval(val)); }
                if( strcmp( key , "Konyv10Nev" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarString(playerid, "Konyv10Nev", val); }
                if( strcmp( key , "Konyv10Szam" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Konyv10Szam", strval(val)); }
                print("After phonebook loaded.");
Reply
#9

crashesh after print("Before phonebook loaded.");
or before print("Before phonebook loaded."); ?
or after print("After phonebook loaded.");?
Reply
#10

It crashes after print("Before phonebook loaded.");.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)