server crash after exit - 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: server crash after exit (
/showthread.php?tid=336821)
server crash after exit -
PaYkOK - 23.04.2012
Okay i enter the server normally and when i exit the client exits too ...
Heres the OnPlayerDisconnect
Код:
public OnPlayerDisconnect(playerid, reason)
{
SendClientMessageToAll(COLOR_RED,"%s has left the server. Bye.");
if (PLAYERLIST_authed[playerid])
{
dUserSetINT(PlayerName2(playerid)).("money",GetPlayerMoney(playerid));
dUserSetINT(PlayerName2(playerid)).("kills",MyKills[playerid]);
dUserSetINT(PlayerName2(playerid)).("deaths",MyDeaths[playerid]);
dUserSetINT(PlayerName2(playerid)).("teamkills",TeamKills[playerid]);
}
PLAYERLIST_authed[playerid]=true;
return false;
}
And heres the crash log :
Код:
SA-MP Server: 0.3d-R2
Exception At Address: 0x00492AAC
Registers:
EAX: 0x68207325 EBX: 0x02837573 ECX: 0x7FFFFFFE EDX: 0x0018F7D8
ESI: 0x0018F7D8 EDI: 0x0018FBFE EBP: 0x0018F48C ESP: 0x0018F400
EFLAGS: 0x00010202
Stack:
+0000: 0x0018FBD8 0x0018F7D8 0x02837568 0x00000000
+0010: 0x00000000 0x00000000 0x00000000 0x00000007
+0020: 0x00000000 0x00000000 0x00000000 0x00000000
+0030: 0x00000000 0x00000000 0x00000000 0x00000000
+0040: 0x00000000 0x00000000 0x68207325 0xFFFFFFFF
+0050: 0x00000000 0x00000000 0x00000000 0x00000000
+0060: 0x00000000 0x00000000 0x00000000 0x00000000
+0070: 0x00000000 0x00000000 0x00000000 0x00000000
+0080: 0x00000000 0x00000000 0x00000000 0x00000000
+0090: 0x00000000 0x00000000 0x00000000 0x00000000
+00A0: 0x0000000A 0x0214A3E0 0x00250000 0x0214A460
+00B0: 0x00000000 0x00000000 0x00000000 0x00000000
+00C0: 0x00000006 0x0018F5B0 0x0000000A 0x00250000
+00D0: 0x0214A3E0 0x0018F5B0 0x77793413 0x77793442
+00E0: 0x7AAF716C 0x0018F724 0x002501D4 0x00250000
+00F0: 0x00250150 0x00000000 0x00000000 0x00250150
+0100: 0x00000000 0x00250174 0x00000000 0x00000006
+0110: 0x00000000 0x00250150 0x00000010 0x02859168
+0120: 0x00000000 0x00000010 0x00000000 0x0000000A
+0130: 0x00000000 0x00000000 0x00000000 0x00000000
Re: server crash after exit -
Roel - 23.04.2012
Are you sure your user files can be made?
Like if they are in a folder under scriptfiles, You have to create this folder else it will crash.
Re: server crash after exit -
PaYkOK - 23.04.2012
i have a problem with the user files too, it was normal (/register password) , then i moved it onto dialog and it just saves the passwords and not rest of the stuff
Re: server crash after exit -
Elysian` - 23.04.2012
First of all,
You should have a line on the top of your Script:
Код:
#define PATH "/FolderHere/%s.ini"
FolderHere = Your folder name which will be found in "ScriptFiles".