Server Logs Crashdetect
#1

server logs guyz help plz
Код:
[19:23:02] [debug] Server crashed while executing Armyvsresistance.amx
[19:23:02] [debug] AMX backtrace:
[19:23:02] [debug] #0 00000032 in ?? (0x00000032, 0x00000000, 0x660000aa, 0x00000000, 0x01081310, 0x00016f1c, 0x00000008, 0x00000001, 0x00000001, 0x00000000, ... <2 arguments>) from Armyvsresistance.amx
[19:23:02] [debug] #1 00000032 in public SSCANF_OnPlayerDisconnect () from Armyvsresistance.amx
[19:23:02] [debug] #2 native CallLocalFunction () [080d2bb0] from samp910340
[19:23:02] [debug] #3 00010b9c in public Streamer_OnPlayerDisconnect (0x00000001, 0x00000001) from Armyvsresistance.amx
[19:23:02] [debug] #4 native CallLocalFunction () [080d2bb0] from samp910340
[19:23:02] [debug] #5 00010240 in ?? (0x00000001, 0x00000001) from Armyvsresistance.amx
[19:23:02] [debug] #6 000052fc in public OnPlayerDisconnect (0x00000001, 0x00000001) from Armyvsresistance.amx



and its my server on player disconnect
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;
    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


Forum Jump:


Users browsing this thread: 1 Guest(s)