CrashDetect OnPlayerDisconnect [reps]
#1

Код:
[14:08:39]+ [debug] Server crashed while executing JLadmin.amx
[14:08:39]+ [debug] AMX backtrace:
[14:08:39]+ [debug] #0 00000038 in ?? (... <13 arguments>) at C:\Users\MaHdy\Desktop\SPA Server original\pawno\include\float.inc:108
[14:08:39]+ [debug] #1 00000038 in public OnPlayerDisconnect () at C:\Users\MaHdy\Desktop\SPA Server original\pawno\include\float.inc:108
[14:08:39]+ [debug] Native backtrace:
[14:08:39]+ [debug] #0 b7299246 in _ZN10StackTraceC2EPv () from plugins/crashdetect.so
[14:08:39]+ [debug] #1 b7291f03 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[14:08:39]+ [debug] #2 b729297c in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[14:08:39]+ [debug] #3 b7294df4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[14:08:39]+ [debug] #4 b7298d1d in ?? () from plugins/crashdetect.so
[14:08:39]+ [debug] #5 b76e1600 in ?? ()
[14:08:39]+ [debug] #6 b49316f0 in ?? () from `hj·fj·Д!	Д!	Е!	Д!	u#	Д#	ф™j·
[14:08:39]+ [debug] #7 00000025 in ?? () from `hj·fj·Д!	Д!	Е!	Д!	µ#	Д#	ф™j·
OnPlayerDisconnect:
Код:
public OnPlayerDisconnect(playerid, reason)
{
    #if LoginTextDraw == true
    TextDrawHideForPlayer(playerid, TEXT_PASSWORD);
	TextDrawHideForPlayer(playerid, TEXT_REGISTER);
	TextDrawHideForPlayer(playerid, TEXT_REGISTERED);
    #endif
    #if SpecTextDraw == true
	PlayerTextDrawHide(playerid, SpecPTD);
	PlayerTextDrawDestroy(playerid, SpecPTD);
    #endif
    if(GetPVarInt(playerid,"MapHidden") == 1 || pInfo[playerid][NameTagHidden] == 1)
		KillTimer(pHideTimer[playerid]);
		
	if(pInfo[playerid][Jailed] == 1)
		KillTimer(Jtimer[playerid]);
		
	if(pInfo[playerid][Frozen] == 1)
		KillTimer(Ftimer[playerid]);
		
	if(pInfo[playerid][Muted] == 1)
		KillTimer(Mtimer[playerid]);
	
    if(pInfo[playerid][SpawnedCars] > 0)
	{
       for(new i=0; i<pInfo[playerid][SpawnedCars]; i++)
	   {
           DestroyVehicle(pInfo[playerid][Cars][i]);
       }
 	   pInfo[playerid][SpawnedCars] = 0;
	}
	
	if(pInfo[playerid][Locked] == 1)
	{
	   foreach(Player, i)
	   SetVehicleParamsForPlayer(GetPVarInt(playerid,"CarID"),i,false,false);
	   pInfo[playerid][Locked]   =    0;
	   Delete3DTextLabel(vLocked3DT[playerid]);
	}
	if(pInfo[playerid][Registered] == 1 && pInfo[playerid][Logged] == 1)
    	SaveStatus(playerid);
    	
    if(reason == 0) format(Jstring, sizeof(Jstring), ">> %s(%d) has signed out [Reason: Crashed/Timeout]", GetName(playerid), playerid);
    
    else if(reason == 2) format(Jstring, sizeof(Jstring), ">> %s(%d) has signed out [Reason: Kicked]", GetName(playerid), playerid);
    
	else format(Jstring, sizeof(Jstring), ">> %s(%d) has signed out", GetName(playerid), playerid);
	
	SendToAdmins(white,Jstring);
	
	if(reconnect[playerid] == 1)
    {
        new
			ip[16],
			string[50]
		;

        GetPVarString(playerid, "MYIP", ip, 16);
        format(string,sizeof(string),"unbanip %s", ip);
        SendRconCommand(string);
        reconnect[playerid] = 0;
    }
    
    foreach(Player, i)
	{
		if (Specid[i] == playerid && pInfo[i][Spec] == 1)
		{
			SpecNext(playerid);
			GameTextForPlayerEx(playerid,"~G~Player ~R~Disconnected",2000,3);
		}
	}
	return 1;
}
Urgent please!
Reply
#2

No need for another thread with the same problem.

http://forum.sa-mp.com/showthread.ph...61#post2920161

and the only hint is the callback, nothing else. So nobody can guess what crashed your server.
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
No need for another thread with the same problem.

http://forum.sa-mp.com/showthread.ph...61#post2920161

and the only hint is the callback, nothing else. So nobody can guess what crashed your server.
What can i do , i mean server keep crashing everyday for this reason
Reply
#4

The only way might help you is manual debugging. Print messages in every line and see where the code stops or consinder of using another admin system.
Reply
#5

How to print :
print(" Successfully line 491 ");?
Reply
#6

Yes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)