Ariel_Boan
Новичок
Ставлю Google Authenticator, захожу снова на сервер, введу номер а сервер крашает.
serverlog - crash
Код:
case 5438:
{
if(!response)
{
SendClientMessage(playerid, COLOR_DARKORANGE, "Вы не ввели код при двухфакторной авторизации, поэтому были отключены от сервера");
Kick(playerid);
return 1;
}
new till = 0;
if(sscanf(inputtext, "i", till)) return ShowPlayerDialog(playerid, -1, DIALOG_STYLE_INPUT, "{FFCC00}Двухфакторная авторизация", "{ffffff}К Вашему аккаунту подключён {FFCC00}Google Authenticator{ffffff}.\nВведите код, который сгенерирован в приложении ниже:\n\n{bbbbbb}Если вы потеряли доступ к своему девайсу, то воспользуйтесь помощью на forum.Star-rp.ru/help_google", "Далее", "Отмена");
new heh = GoogleAuthenticatorCode(passwo11rd, gettime());
if(till != heh)
{
SendClientMessage(playerid, COLOR_DARKORANGE, "Вы ввели неправильный код при двухфакторной авторизации, поэтому были отключены от сервера");
Kick(playerid);
}
else if(till == heh)
{
load_ost(playerid);
}
}
Спасибо всем кто поможет.[03:38:16] [debug] Server crashed while executing xxx.amx
[03:38:16] [debug] AMX backtrace:
[03:38:16] [debug] #0 native GoogleAuthenticatorCode () from TOTP.so
[03:38:16] [debug] #1 001b0d10 in public OnDialogResponse (0, 5438, 1, -1, 12198200) from xxx.amx
[03:38:16] [debug] Native backtrace:
[03:38:16] [debug] #0 f7a34e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[03:38:16] [debug] #1 f7a2dbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[03:38:16] [debug] #2 f7a2edbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[03:38:16] [debug] #3 f7a2f226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[03:38:16] [debug] #4 f7a34adc in ?? () from plugins/crashdetect.so
[03:38:16] [debug] #5 f7f06ef0 in __kernel_rt_sigreturn () from linux-gate.so.1
[03:38:16] [debug] #6 f7adea46 in ?? () from /lib/i386-linux-gnu/libc.so.6
[03:38:16] [debug] #7 f7ef9f6f in _Z12compute_codePKcm () from plugins/TOTP.so
[03:38:16] [debug] #8 f7efa119 in _Z23GoogleAuthenticatorCodeP6tagAMXPi () from plugins/TOTP.so
[03:38:16] [debug] #9 080950e4 in ?? () from ./samp03svr
[03:38:16] [debug] #10 f7a3094b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[03:38:16] [debug] #11 f7a338f8 in ?? () from plugins/crashdetect.so
[03:38:16] [debug] #12 f7a37916 in amx_Exec () from plugins/crashdetect.so
[03:38:16] [debug] #13 f7a2fbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[03:38:16] [debug] #14 f7a33659 in ?? () from plugins/crashdetect.so
[03:38:16] [debug] #15 f6487d36 in ?? () from plugins/streamer.so
[03:38:16] [debug] #16 080a682f in ?? () from ./samp03svr
[03:38:16] [debug] #17 080b2c44 in ?? () from ./samp03svr
[03:38:16] [debug] #18 08071d38 in ?? () from ./samp03svr
[03:38:16] [debug] #19 08071e32 in ?? () from ./samp03svr
[03:38:16] [debug] #20 0807bc50 in ?? () from ./samp03svr
[03:38:16] [debug] #21 080aed3d in ?? () from ./samp03svr
[03:38:16] [debug] #22 080aef02 in ?? () from ./samp03svr
[03:38:16] [debug] #23 080aa13a in ?? () from ./samp03svr
[03:38:16] [debug] #24 f7a70793 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
