[Ajuda] Crashdetect bugado ?
#1

pawn Код:
[10:22:05] [chat] [Renata]: VAI TOMA NA QUELE LUGAR
[10:22:06] [chat] [Renata]: VAI TOMA NA QUELE LUGAR
[10:22:06] [chat] [Renata]: VAI TOMA NA QUELE LUGAR
[10:22:07] [chat] [Renata]: VAI TOMA NA QUELE LUGAR
[10:22:07] [chat] [Renata]: VAI TOMA NA QUELE LUGAR
[10:22:07] Warning: PlayerDialogResponse PlayerId: 13 dialog ID doesn't match last sent dialog ID
[10:22:08] [chat] [Renata]: VAI TOMA NA QUELE LUGAR
[10:22:08] [debug] Server crashed while executing ladmin.amx
[10:22:08] [debug] AMX backtrace:
[10:22:08] [debug] #0 0000ccfc in public OnPlayerText () from ladmin.amx
[10:22:08] [debug] System backtrace:
[10:22:08] [debug] #0 f7e550f3 in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[10:22:08] [debug] #1 f7e4cb61 in _ZN11crashdetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so
[10:22:08] [debug] #2 f7e4f405 in _ZN11crashdetect15SystemExceptionEPv () from plugins/crashdetect.so
[10:22:08] [debug] #3 f7e54c42 in ?? () from plugins/crashdetect.so
[10:22:08] [debug] #4 ffffe500 in ?? ()
[10:22:08] [debug] #5 08096997 in ?? () from ./samp03svr
[10:22:08] [debug] #6 080da3c2 in ?? () from ./samp03svr
[10:22:08] [debug] #7 f7e57267 in amx_Exec () from plugins/crashdetect.so
[10:22:08] [debug] #8 f7e4f8b4 in _ZN11crashdetect9DoAmxExecEPii () from plugins/crashdetect.so
[10:22:08] [debug] #9 f7e53203 in ?? () from plugins/crashdetect.so
[10:22:08] [debug] #10 080a1b87 in ?? () from ./samp03svr
[10:22:08] [debug] #11 080aee03 in ?? () from ./samp03svr
[10:22:08] [debug] #12 080733b1 in ?? () from ./samp03svr
[10:22:08] [debug] #13 080734a2 in ?? () from ./samp03svr
[10:22:08] [debug] #14 0807d2b0 in ?? () from ./samp03svr
[10:22:08] [debug] #15 080ad47d in ?? () from ./samp03svr
[10:22:08] [debug] #16 080ad652 in ?? () from ./samp03svr
[10:22:08] [debug] #17 080a8fb3 in ?? () from ./samp03svr
[10:22:08] [debug] #18 005b2e9c in __libc_start_main () from /lib/libc.so.6
[10:22:08] [debug] #19 0804b491 in ?? () from ./samp03svr
Comeзou a dar estes erros quando comeзei a usar o crashdetect, serб que e a plugin crashdetect ou e mesmo o filterscript ladmin ?
Reply
#2

й erros que tem que verificar mano!

pawn Код:
[10:22:08] [debug] #0 0000ccfc in public OnPlayerText () from ladmin.amx
erro no fs ladmin na public onplayertext
Reply
#3

Quote:
Originally Posted by Alex_Kidds
Посмотреть сообщение
й erros que tem que verificar mano!

pawn Код:
[10:22:08] [debug] #0 0000ccfc in public OnPlayerText () from ladmin.amx
erro no fs ladmin na public onplayertext
Й, mais antes de colocar essa plugin, nгo dava nada, agora com a plugin dб.
COloquei a linha do OnPlayerText, para vocкs darem uma olhada;

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '#' && PlayerInfo[playerid][Level] >= 1) {
        new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]); MessageToAdmins(green,string);
        return 0;
    }

    if(ServerInfo[DisableChat] == 1) {
        SendClientMessage(playerid,red,"Chat has been disabled");
        return 0;
    }
   
    if(PlayerInfo[playerid][Muted] == 1)
    {
        PlayerInfo[playerid][MuteWarnings]++;
        new string[128];
        if(PlayerInfo[playerid][MuteWarnings] < ServerInfo[MaxMuteWarnings]) {
            format(string, sizeof(string),"WARNING: You are muted, if you continue to speak you will be kicked. (%d / %d)", PlayerInfo[playerid][MuteWarnings], ServerInfo[MaxMuteWarnings] );
            SendClientMessage(playerid,red,string);
        } else {
            SendClientMessage(playerid,red,"You have been warned ! Now you have been kicked");
            format(string, sizeof(string),"***%s (ID %d) was kicked for exceeding mute warnings", PlayerName2(playerid), playerid);
            SendClientMessageToAll(grey,string);
            SaveToFile("KickLog",string); Kick(playerid);
        } return 0;
    }
   
    if(ServerInfo[AntiSpam] == 1 && (PlayerInfo[playerid][Level] == 0 && !IsPlayerAdmin(playerid)) )
    {
        if(PlayerInfo[playerid][SpamCount] == 0) PlayerInfo[playerid][SpamTime] = TimeStamp();

        PlayerInfo[playerid][SpamCount]++;
        if(TimeStamp() - PlayerInfo[playerid][SpamTime] > SPAM_TIMELIMIT) { // Its OK your messages were far enough apart
            PlayerInfo[playerid][SpamCount] = 0;
            PlayerInfo[playerid][SpamTime] = TimeStamp();
        }
        else if(PlayerInfo[playerid][SpamCount] == SPAM_MAX_MSGS) {
            new string[64]; format(string,sizeof(string),"%s has been kicked (Flood/Spam Protection)", PlayerName2(playerid));
            SendClientMessageToAll(grey,string); print(string);
            SaveToFile("KickLog",string);
            Kick(playerid);
        }
        else if(PlayerInfo[playerid][SpamCount] == SPAM_MAX_MSGS-1) {
            SendClientMessage(playerid,red,"Anti Spam Warning! Next is a kick.");
            return 0;
        }
    }

    if(ServerInfo[AntiSwear] == 1 && PlayerInfo[playerid][Level] < ServerInfo[MaxAdminLevel])
    for(new s = 0; s < ForbiddenWordCount; s++)
    {
        new pos;
        while((pos = strfind(text,ForbiddenWords[s],true)) != -1) for(new i = pos, j = pos + strlen(ForbiddenWords[s]); i < j; i++) text[i] = '*';
    }

    if(PlayerInfo[playerid][Caps] == 1) UpperToLower(text);
    if(ServerInfo[NoCaps] == 1) UpperToLower(text);

    for(new i = 1; i < MAX_CHAT_LINES-1; i++) Chat[i] = Chat[i+1];
    new ChatSTR[128]; GetPlayerName(playerid,ChatSTR,sizeof(ChatSTR)); format(ChatSTR,128,"[lchat]%s: %s",ChatSTR, text[0] );
    Chat[MAX_CHAT_LINES-1] = ChatSTR;
    return 1;
}
Reply
#4

й intгo cara erros podem ser escondidos e a crash detect tem a funзгo de mostrar alguns erros que estгo ocultos pode dar conflito pois seu GM tem o Onplayertext e essa fs tb ja vi muito disso!
Reply
#5

Cara o crashdetect serve para isso, alertar a vocк todos os erros que tem em seu GM para que enquanto vocк esteja jogando nгo seja surpreendido com um crash do nada..
Reply
#6

O erro pode estar no seu anti flood, tente floodar no server e ver se vai dar crash pra testar.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)