Server Logs Server Crash
#1

Server Crash And Server Logs
Код:
[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
Plz Fix this THis OnPlayerDisconnect COdes
Код:
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;
}
Reply
#2

The only hint it gives is the callback (OnPlayerDisconnect) and in the backtrace #0 is unknown (??). I don't see anything wrong with the code from a look, so do:

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
[...]
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.
Reply
#3

Already Using Latest Version But still cant Find Bug
Reply
#4

Most probally no error if it compiles check your plugins and everything that requires that file to run.
Reply
#5

compile with -d3 tag, it will show which line exactly crash it.

Create a shortcut of pawncc.exe and in the target field put -d3 at the end, something like this:
"C:\SAMP\pawno\pawncc.exe -d3", after it drag and drop your gamemode over that shortcut, compiled version will be found in the pawno folder, move it to gamemodes and try to run , see what it says.
Reply
#6

Plz Help me It crash
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)