07.04.2016, 14:58
Код HTML:
case LOGIN_THREAD: { for(new i;i < rows;i++) { new szPass[129], szResult[129], szBuffer[129], szEmail[256]; cache_get_field_content(i, "Username", szResult, MainPipeline); if(strcmp(szResult, GetPlayerNameExt(extraid), true) != 0) { //g_mysql_AccountAuthCheck(extraid); return 1; } cache_get_field_content(i, "Email", szEmail, MainPipeline); cache_get_field_content(i, "Password", szResult, MainPipeline); GetPVarString(extraid, "PassAuth", szBuffer, sizeof(szBuffer)); WP_Hash(szPass, sizeof(szPass), szBuffer); if(isnull(szEmail)) SetPVarInt(extraid, "NullEmail", 1); if((isnull(szPass)) || (isnull(szResult)) || (strcmp(szPass, szResult) != 0))
Код HTML:
// g_mysql_AccountLoginCheck(playerid) stock g_mysql_AccountLoginCheck(playerid) { ShowNoticeGUIFrame(playerid, 2); new string[128]; format(string, sizeof(string), "SELECT `Username`,`Password`,`Email` from accounts WHERE Username = '%s'", GetPlayerNameExt(playerid)); mysql_function_query(MainPipeline, string, true, "OnQueryFinish", "iii", LOGIN_THREAD, playerid, g_arrQueryHandle{playerid}); return 1; }
I need to move from `Key` to `password` . please help me