kolo078
Wiek: 39 Na forum: 5178 dni Posty: 35
Nick w MP: Vito_Andolini
Piwa : 85
Ot?? serwer crashuje po zalogowaniu si? na konto oto logi:
Kod: [21] [join] Carl_Johnson has joined the server (0:94.40.44.70)
[21] [debug] Server crashed while executing style.amx
[21] [debug] AMX backtrace:
[21] [debug] #0 native fclose () [0809abc0] from samp03svr
[21] [debug] #1 00000d50 in () from style.amx
[21] [debug] #2 00055074 in () from style.amx
[21] [debug] #3 0001d6b8 in public OnDialogResponse () from style.amx
[21] [debug] Native backtrace:
[21] [debug] #0 b668ee0b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[21] [debug] #1 b6688e7f in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[21] [debug] #2 b6689956 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[21] [debug] #3 b668eb1c in () from plugins/crashdetect.so
[21] [debug] #4 b774c600 in ()
[21] [debug] #5 b7500e07 in fclose () from /lib/i386-linux-gnu/libc.so.6
[21] [debug] #6 0809abd4 in () from ./samp03svr
[21] [debug] #7 08093f54 in () from ./samp03svr
[21] [debug] #8 b668760b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[21] [debug] #9 b668b208 in () from plugins/crashdetect.so
[21] [debug] #10 b6690f43 in amx_Exec () from plugins/crashdetect.so
[21] [debug] #11 b6688d2a in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[21] [debug] #12 b668b2a9 in () from plugins/crashdetect.so
[21] [debug] #13 080a505f in () from ./samp03svr
[21] [debug] #14 080b0ea4 in () from ./samp03svr
[21] [debug] #15 08071af8 in () from ./samp03svr
[21] [debug] #16 08071bf2 in () from ./samp03svr
[21] [debug] #17 0807bab0 in () from ./samp03svr
[21] [debug] #18 080ad09d in () from ./samp03svr
[21] [debug] #19 080ad242 in () from ./samp03svr
[21] [debug] #20 080a85ce in () from ./samp03svr
[21] [debug] #21 b74b6e16 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
[21] [debug] #22 0804b4a1 in () from ./samp03svr
* Jak ju? wywnioskowali?cie po b??dach w samp_log jest problem z publicem.
Kod: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(Login(playerid) == 1)
{
printf("[dial] %s: [%s] (%d, %d, %d)", cName(playerid), inputtext, dialogid, response, listitem);
}
if(dialogid == 0)
return 1;
else if(dialogid == DIALOG_ID)
{
if(!response) return Kick(playerid);
new str[312];
new hash[256];
new salt[256];
mysql_real_escape_string(inputtext, str);
format(str, sizeof str, "SELECT 1postacie.owneruid, 1postacie.uid, members.members_pass_salt FROM 1postacie JOIN members ON members.member_id = 1postacie.owneruid WHERE 1postacie.nick = '%s' LIMIT 1", NickSAMP(playerid));
mysql_query_ex(str);
mysql_store_result();
if(mysql_num_rows() != 0)
{
mysql_fetch_row_format(str);
sscanf(str, "p<|>dds[256]", globaluid[playerid], playeruid[playerid], salt);
Player[playerid][pUID] = playeruid[playerid];
SetPVarInt(playerid, "pGID", globaluid[playerid]);
}
mysql_free_result();
format(hash, sizeof(hash), "%s%s", MD5_Hash(salt), MD5_Hash(inputtext));
mysql_real_escape_string(hash, hash);
format(str, sizeof(str), "SELECT 1postacie.*, members.name FROM 1postacie JOIN members ON members.members_pass_hash = md5('%s') WHERE 1postacie.uid = %d LIMIT 1", hash, playeruid[playerid]);
mysql_query_ex(str);
mysql_store_result();
if(mysql_num_rows())
{
mysql_free_result();
format(String, sizeof(String), "[info] Pomyslnie zalogowano (%s).", inputtext), PlayerLog(playerid, String);
setLogin(playerid, 1), OnPlayerLoginIC(playerid, NickSAMP(playerid));
}
else
{
mysql_free_result();
SetPVarInt(playerid, "BledneLogowanie", GetPVarInt(playerid, "BledneLogowanie") +1);
if(GetPVarInt(playerid, "BledneLogowanie") == 2)
{
Kick(playerid);
}
new query[200];
GetPlayerIp(playerid, Player[playerid][pIP], 16);
format(query, sizeof(query), "INSERT INTO `1sesje_log` (`data`,`char`,`global`,`status`,`IP`) VALUES (%d, %d, %d, %d, '%s')", gettime(), playeruid[playerid], globaluid[playerid], 0, Player[playerid][pIP]);
mysql_query_ex(query);
dShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_PASSWORD, ""ServName"Logowanie", "Witaj na serwerze RolePlay!\n\nPosta? zosta?a odnaleziona w Naszej bazie danych,\ndokonaj autoryzacji wpisuj?c has?o.", "Dalej", "Anuluj");
InfoBoxShow(2, playerid, "Podane haslo jest ~r~nieprawidlowe~w~.", 3);
}
}
Poradzicie co? w tej sprawi?? Dzi?ki z g?ry, nagradzam piwkami za konkretn? pomoc.