• Уважаемый Гость.
    - Прежде чем создать свою тему, пожалуйста, попробуй воспользоваться этим -> ПОИСКОМ !!!
    - После решения Вашего вопроса (проблемы) - нажмите "Лучший ответ", на сообщении, которое его решило. За игнорирование этого действия - Вы получите соответствующее предупреждение. Мы - стараемся Вам помочь. Уделите 10 секунд - чтобы нажать кнопку. (Если у Вас нет такой возможности - укажите в последнем своем сообщении какой ответ Вы считаете лучшим. Наши модераторы сделают это за Вас)
    ЗАПРЕЩЕНО:
    - Cоздавать темы с названиями "Помогите", "Плиз", "Ошибка", "Не могу найти", "Хелп" и тому подобное;
    - Cоздавать темы без детального описания того, что нужно исправить.
    - Cоздавать темы из одного скриншота.
    За игнор правил форума - Ваша тема будет удалена, а Вы получите системное предупреждение.

Крашит amx файл.

Nikit[A]

Ученик
Крашит сервер при регистрации на определенном этапе.

server log
Код:
[21:50:12] [join] Barbara_Becker has joined the server (0:94.51.38.91)
[21:52:39] [debug] Server crashed while executing rc-rp.amx
[21:52:39] [debug] AMX backtrace:
[21:52:39] [debug] #0 native SetPlayerName () from sscanf.so
[21:52:39] [debug] #1 00873004 in public dialog_PassRegister (playerid=0, response=1, listitem=-1, inputtext[]=@16a7d5d0 "chelyabinsk2001") at D:\Gamemodes\Red County Project\pawno\include\gm/login/login_dlg.inc:93
[21:52:39] [debug] #2 native CallLocalFunction () from samp03svr
[21:52:39] [debug] #3 000252b8 in public OnDialogResponse (playerid=0, dialogid=32700, response=1, listitem=-1, inputtext[]=@16a7d590 "chelyabinsk2001") at D:\Gamemodes\Red County Project\pawno\include\easyDialog.inc:135
[21:52:39] [debug] Native backtrace:
[21:52:39] [debug] #0 f735de8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[21:52:39] [debug] #1 f7356bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[21:52:39] [debug] #2 f7357dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[21:52:39] [debug] #3 f7358226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[21:52:39] [debug] #4 f735dadc in ?? () from plugins/crashdetect.so
[21:52:39] [debug] #5 f77d6cb0 in __kernel_rt_sigreturn () from linux-gate.so.1
[21:52:39] [debug] #6 080d5b37 in ?? () from ./samp03svr
[21:52:39] [debug] #7 080d7b65 in ?? () from ./samp03svr
[21:52:39] [debug] #8 f655d39a in ?? () from plugins/sscanf.so
[21:52:39] [debug] #9 080950e4 in ?? () from ./samp03svr
[21:52:39] [debug] #10 f735994b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[21:52:39] [debug] #11 f735c8f8 in ?? () from plugins/crashdetect.so
[21:52:39] [debug] #12 f7360916 in amx_Exec () from plugins/crashdetect.so
[21:52:39] [debug] #13 f7358be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[21:52:39] [debug] #14 f735c659 in ?? () from plugins/crashdetect.so
[21:52:39] [debug] #15 f61744f6 in ?? () from plugins/streamer.so
[21:52:39] [debug] #16 080dfe32 in ?? () from ./samp03svr
[21:52:39] [debug] #17 080950e4 in ?? () from ./samp03svr
[21:52:39] [debug] #18 f735994b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[21:52:39] [debug] #19 f735c8f8 in ?? () from plugins/crashdetect.so
[21:52:39] [debug] #20 f7360916 in amx_Exec () from plugins/crashdetect.so
[21:52:39] [debug] #21 f7358be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[21:52:39] [debug] #22 f735c659 in ?? () from plugins/crashdetect.so
[21:52:39] [debug] #23 f61744f6 in ?? () from plugins/streamer.so
[21:52:39] [debug] #24 080a682f in ?? () from ./samp03svr
[21:52:39] [debug] #25 080b2c44 in ?? () from ./samp03svr
[21:52:39] [debug] #26 08071d38 in ?? () from ./samp03svr
[21:52:39] [debug] #27 08071e32 in ?? () from ./samp03svr
[21:52:39] [debug] #28 0807bc50 in ?? () from ./samp03svr
[21:52:39] [debug] #29 080aed3d in ?? () from ./samp03svr
[21:52:39] [debug] #30 080aef02 in ?? () from ./samp03svr
[21:52:39] [debug] #31 080aa13a in ?? () from ./samp03svr
[21:52:39] [debug] #32 f741d286 in __libc_start_main () from /lib32/libc.so.6

login.dlg
Код:
Dialog:PassRegister(playerid, response, listitem, inputtext[])
{
    if(!response)   KickEx(playerid);
    if(strlen(inputtext) < 6 || strlen(inputtext) > 32)
    {
        Dialog_Show(playerid, PassRegister, DIALOG_STYLE_PASSWORD, "{FFFFFF}Новый пароль", "{FFFFFF}Введите пароль.", "Далее", "");
        return SendErrorMessage(playerid, "Пароль должен быть не менее 6 и не более 32 символов.");
    }
    for(new i = 0; i < strlen(inputtext); i++)
    {
        switch(inputtext[i])
        {
            case '!', '@', '#', '$','%','^','&','*','(',')','_','+','=','|','[',']','{','}','-','.','`','~','<','>','?',',','/':
            {
                Dialog_Show(playerid, PassRegister, DIALOG_STYLE_PASSWORD, "Новый пароль", "Введите пароль.", "Далее", "");
                return SendErrorMessage(playerid, "Вы использовали запрещенный символ.");
            }
            default: continue;
        }
    }
    new query[512], pass[129], ip_reg[8], name[24], email[24];
    GetPlayerIp(playerid, ip_reg, sizeof(ip_reg));
    GetPVarString(playerid, #AccountName, name, 24);
    GetPVarString(playerid, #EmailName, email, 24);
    
    WP_Hash(pass, sizeof (pass), inputtext);
    mysql_format(dbHandle, query, sizeof(query), "INSERT INTO `accounts` (`login`,`password`,`email`,`reg_ip`,`reg_date`) VALUES ('%s','%e','%e','%s','%e')", name, pass, email, ip_reg, get_date("%dd/%mm/%yyyy, %hh:%ii", gettime()));
    mysql_tquery(dbHandle, query);
    
    ClearChatbox(playerid, 50);
    SendServerMessage(playerid, "Поздравляем, Вы успешно зарегистрировали аккаунт!");
    SendServerMessage(playerid, "Подождите немного...");

    SetPlayerName(playerid, name); (ЭТО 93 СТРОЧКА)

    SetTimerEx("CheckAccount", 1500, false, "i", playerid);
    return 1;
}
 
Сверху Снизу