Server Crashed - Warning LOGS
#1

Код HTML:
[23:03:16] [debug] Server crashed while executing gmi.amx
[23:03:16] [debug] AMX backtrace:
[23:03:16] [debug] #0 native format () from samp03svr
[23:03:16] [debug] #1 0030f860 in public OnPlayerText () at D:\server\gm.pwn:54632
[23:03:16] [debug] Native backtrace:
[23:03:16] [debug] #0 f7449e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[23:03:16] [debug] #1 f7442bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[23:03:16] [debug] #2 f7443dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[23:03:16] [debug] #3 f7444226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[23:03:16] [debug] #4 f7449adc in ?? () from plugins/crashdetect.so
[23:03:16] [debug] #5 f7739410 in ?? ()
[23:03:16] [debug] #6 080965d7 in ?? () from samp03svr
[23:03:16] [debug] #7 080dce72 in ?? () from samp03svr
[23:03:16] [debug] #8 080950e4 in ?? () from samp03svr
[23:03:16] [debug] #9 f744594b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[23:03:16] [debug] #10 f74488f8 in ?? () from plugins/crashdetect.so
[23:03:16] [debug] #11 f744c916 in amx_Exec () from plugins/crashdetect.so
[23:03:16] [debug] #12 f7444be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[23:03:16] [debug] #13 f7448659 in ?? () from plugins/crashdetect.so
[23:03:16] [debug] #14 f739625c in ?? () from plugins/streamer.so
[23:03:16] [debug] #15 080a554a in ?? () from samp03svr
[23:03:16] [debug] #16 080b081b in ?? () from samp03svr
[23:03:16] [debug] #17 08071d38 in ?? () from samp03svr
[23:03:16] [debug] #18 08071e32 in ?? () from samp03svr
[23:03:16] [debug] #19 0807bc50 in ?? () from samp03svr
[23:03:16] [debug] #20 080aed3d in ?? () from samp03svr
[23:03:16] [debug] #21 080aef02 in ?? () from samp03svr
[23:03:16] [debug] #22 080aa13a in ?? () from samp03svr
[23:03:16] [debug] #23 f7483bf6 in __libc_start_main () from /lib32/libc.so.6
[23:03:16] [debug] #24 0804b4e1 in ?? () from samp03svr
Код HTML:
if(IsPlayerConnected(Mobile[playerid]))
					{
						new samp[256];
					    if(Mobile[Mobile[playerid]] == playerid)
					    {
							if(PlayerData[Mobile[playerid]][pSpeaker] == 1)
							{
								format(samp, 256, "(speaker) %s: %s",GetName(playerid), text);
								nearByMessage(Mobile[playerid], COLOR_GREY, samp);
							}
							else
							{
								format(samp, 256, "(cellphone) %s: %s",GetName(playerid), text);
							    SendClientMessage(Mobile[playerid], COLOR_GREY, samp);
							}
						}
					}
Line 54632: SendClientMessage(Mobile[playerid], COLOR_GREY, samp);
Reply
#2

PHP код:
if(IsPlayerConnected(Mobile[playerid]))
                    {
                        if(
Mobile[Mobile[playerid]] == playerid)
                        {
                            if(
PlayerData[Mobile[playerid]][pSpeaker] == 1)
                            {
                                                                new 
samp[256];
                                
format(samp256"(speaker) %s: %s",GetName(playerid), text);
                                
nearByMessage(Mobile[playerid], COLOR_GREYsamp);
                            }
                            else
                            {
                                                                new 
samp[256];
                                
format(samp256"(cellphone) %s: %s",GetName(playerid), text);
                                    
SendClientMessage(Mobile[playerid], COLOR_GREYsamp);
                            }
                        }
                    } 
if it's not working post here nearByMessage
Reply
#3

Код HTML:
stock nearByMessage(playerid, color, string[], Float: Distance3 = 20.0) {
	new
	    Float: nbCoords[3];

	GetPlayerPos(playerid, nbCoords[0], nbCoords[1], nbCoords[2]);

	foreach(Player, i) {
	    if(PlayerData[i][pStatus] >= 1) {
	        if(IsPlayerInRangeOfPoint(i, Distance3, nbCoords[0], nbCoords[1], nbCoords[2]) && (GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))) {
				SendClientMessage(i, color, string);
			}
	    }
	}

	return 1;
}
I don't think that is the issue because i am using it on the entire script.
Reply
#4

Try this.
Код HTML:
if(IsPlayerConnected(Mobile[playerid])) 
                    { 
                        if(Mobile[Mobile[playerid]] == playerid) 
                        { 
                            if(PlayerData[Mobile[playerid]][pSpeaker] == 1) 
                            { 
                                                                new samp[256]; 
                                format(samp, 256, "(speaker) %s: %s",GetName(playerid), text); 
                                nearByMessage(Mobile[playerid], COLOR_GREY, samp); 
                            } 
                            else 
                            { 
                                                                new samp[660]; 
                                format(samp, 256, "(cellphone) %s: %s",GetName(playerid), text); 
                                    SendClientMessage(Mobile[playerid], COLOR_GREY, samp); 
                            } 
                        } 
                    } 
Reply
#5

Mobile[playerid] how you defined it? what data type it holds?
Reply
#6

It gets a value (number phone). For example, if I use /call 1234, mobile[playerid] gets 1234 value;
Reply
#7

Are you sure you intentionally put
Код:
Mobile[Mobile[playerid]]
?
Reply
#8

I checked and actually i use Mobile[playerid] to detect the targetid. For example, if i use /call 13218 (X's phone who has id 8 on tab), mobile[playerid] gets 8 value.

It is weird because until now server worked perfect.
Reply
#9

Are you missing what I've pointed out?

where it says
Код:
if(Mobile[Mobile[playerid]] == playerid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)