Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Server crash

$
0
0
My server crash after someone change his password...

[17:59:50] [debug] Server crashed while executing BigZoneGM.amx
[17:59:50] [debug] AMX backtrace:
[17:59:50] [debug] #0 native SendClientMessage () from samp03svr
[17:59:50] [debug] #1 001f6ad8 in public OnDialogResponse (32, 132, 1, -1, 26545128) from BigZoneGM.amx
[17:59:50] [debug] Native backtrace:
[17:59:50] [debug] #0 f6c9ae8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[17:59:50] [debug] #1 f6c93bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[17:59:50] [debug] #2 f6c94dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[17:59:50] [debug] #3 f6c95226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[17:59:50] [debug] #4 f6c9aadc in ?? () from plugins/crashdetect.so
[17:59:50] [debug] #5 f77ac410 in ?? ()
[17:59:50] [debug] #6 f7525377 in _IO_vfprintf () from /lib32/libc.so.6
[17:59:50] [debug] #7 f754415c in vsprintf () from /lib32/libc.so.6
[17:59:50] [debug] #8 080ad731 in ?? () from samp03svr
[17:59:50] [debug] #9 080d99e9 in ?? () from samp03svr
[17:59:50] [debug] #10 080950e4 in ?? () from samp03svr
[17:59:50] [debug] #11 f6c9694b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[17:59:50] [debug] #12 f6c998f8 in ?? () from plugins/crashdetect.so
[17:59:50] [debug] #13 f6c9d916 in amx_Exec () from plugins/crashdetect.so
[17:59:50] [debug] #14 f6c95be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[17:59:50] [debug] #15 f6c99659 in ?? () from plugins/crashdetect.so
[17:59:50] [debug] #16 f6c08bc6 in ?? () from plugins/streamer.so
[17:59:50] [debug] #17 080a682f in ?? () from samp03svr
[17:59:50] [debug] #18 080b2c44 in ?? () from samp03svr
[17:59:50] [debug] #19 08071d38 in ?? () from samp03svr
[17:59:50] [debug] #20 08071e32 in ?? () from samp03svr
[17:59:50] [debug] #21 0807bc50 in ?? () from samp03svr
[17:59:50] [debug] #22 080aed3d in ?? () from samp03svr
[17:59:50] [debug] #23 080aef02 in ?? () from samp03svr
[17:59:50] [debug] #24 080aa13a in ?? () from samp03svr
[17:59:50] [debug] #25 f74f8bd6 in __libc_start_main () from /lib32/libc.so.6
[17:59:50] [debug] #26 0804b4e1 in ?? () from samp03svr

Code:

if(dialogid == DIALOG_NEWPASS)
        {
                if(response)
            {
                        new length = strlen(inputtext);
                        if(length == 0 || length > 15)
                        {
                                SendClientMessage(playerid, COLOR_WHITE, "Please enter another password (maximum 15 characters).");
                                ShowPlayerDialog(playerid, DIALOG_NEWPASS,DIALOG_STYLE_INPUT, "Change password:","Type in box your new password:","Done","Close");
                                return 1;
                        }
                if(strlen(inputtext) > 1 && strlen(inputtext) < 16)
                        {
                                new tmppass[64],namee[30],playerip[16];
                                mysql_real_escape_string(inputtext, tmppass);
                                strmid(PlayerInfo[playerid][pKey], tmppass, 0, strlen(tmppass), 255);
                                format(string,sizeof(string),"Your new password is %s.",inputtext);
                                SendClientMessage(playerid, COLOR_YELLOW,string);
                                GetPlayerName(playerid, namee, sizeof(namee));
                                GetPlayerIp(playerid, playerip, sizeof(playerip));
                                format(string,sizeof(string),"%s[user:%d] changed his password. IP: %s",namee,PlayerInfo[playerid][pSQLID],playerip);
                                ABroadCast(COLOR_YELLOW, string,1);
                                GetPlayerName(playerid,sendername,sizeof(sendername));
                                new str2[240];
                        mysql_format(SQL, str2, sizeof(str2), "UPDATE users SET `password`='%s' WHERE `name`='%s'",PlayerInfo[playerid][pKey], PlayerInfo[playerid][pNormalName]);
                        mysql_tquery(SQL,str2,"","");
                                return 1;
                        }
                        else
                        {
                            ShowPlayerDialog(playerid, DIALOG_NEWPASS,DIALOG_STYLE_INPUT, "Change password:","Type in box your new password:","Done","Close");
                                return 1;
                        }
                }
                return 1;
        }

DIALOG_NEWPASS is id 132 so that is the reason I think is from /changepass.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>