[19:27:41] [debug] Server crashed while executing Dom.amx [19:27:41] [debug] AMX backtrace: [19:27:41] [debug] #0 00000032 in ?? (0x00000032, 0x00000000, 0x660000aa, 0x00000000, 0x01085a24, 0x0005702c, 0x00000004, 0x00000001, 0x01085a38, 0x000167f8, ... <2 arguments>) from Dom.amx [19:27:41] [debug] #1 00000032 in public SSCANF_OnPlayerDisconnect () from Dom.amx [19:27:41] [debug] #2 native CallLocalFunction () [080d2960] from samp97260 [19:27:41] [debug] #3 00010478 in public Streamer_OnPlayerDisconnect (0x00000001, 0x00000001) from Dom.amx [19:27:41] [debug] #4 0000fdc8 in ?? (0x00000001, 0x00000001) from Dom.amx [19:27:41] [debug] #5 000053c4 in public OnPlayerDisconnect (0x00000001, 0x00000001) from Dom.amx
public OnPlayerDisconnect(playerid, reason)
{
if(TentEnable[playerid]==1)
{
DestroyObject(Tent[playerid]);
}
if(floorEnable[playerid]==1)
{
DestroyObject(floor[playerid]);
}
if ( FogEnabled[playerid] )
{
DestroyObject( FogObject[playerid] );
}
SendDeathMessage(INVALID_PLAYER_ID,playerid,201);
Delete3DTextLabel( label[ playerid ] );
PMState{playerid} = false;
Respond{playerid} = 0;
SpeedEnabled[playerid] = false;
SavePlayerData(playerid);
return 1;
}
stock SavePlayerData(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin",Player[playerid][pAdmin]);
INI_WriteInt(File,"Kills",Player[playerid][pKills]);
INI_WriteInt(File,"Deaths",Player[playerid][pDeaths]);
INI_WriteInt(File,"Score",GetPlayerScore(playerid));
INI_WriteInt(File,"Skin",Player[playerid][Skin]);
INI_WriteInt(File,"Ban",Player[playerid][pBan]);
INI_WriteInt(File,"Color",GetPlayerColor(playerid));
INI_WriteInt(File,"Team",gTeam[playerid]);
INI_WriteInt(File,"Ninja",Player[playerid][pninja]);
INI_WriteInt(File,"clothes",Player[playerid][pclothes]);
INI_WriteInt(File,"ninjaskin",Player[playerid][pskin]);
INI_WriteInt(File,"Leader",Player[playerid][pLeader]);
INI_WriteInt(File,"UseSpawnPos",Player[playerid][pUsePos]);
INI_WriteFloat(File,"FloatA",Player[playerid][pA]);
INI_WriteFloat(File,"FloatX",Player[playerid][pX1]);
INI_WriteFloat(File,"FloatY",Player[playerid][pY1]);
INI_WriteFloat(File,"FloatZ",Player[playerid][pZ1]);
INI_WriteInt(File,"HasSavedPos",Player[playerid][pHasSavedPos]);
INI_WriteInt(File,"Bombs",Player[playerid][Bomb]);
INI_WriteInt(File,"Cowboyhat",Player[playerid][hat1]);
INI_WriteInt(File,"whitehat",Player[playerid][hat2]);
INI_WriteInt(File,"blackhat",Player[playerid][hat3]);
INI_Close(File);
return 1;
}
|
[...]
Update crashdetect to the version 4.12 (if the version you use is not the latest one): https://github.com/Zeex/samp-plugin-...ases/tag/v4.12 And re-compile your scripts with debug info (-d3): https://github.com/Zeex/samp-plugin-...ith-debug-info Start the server, connect and disconnect. Post what it printed. |