15.08.2016, 19:47
There's nothing in the mysql log and no error in the compile pawn
Код HTML:
case THREAD_LOGIN: { cache_get_data(rows, fields, g_iHandle); if (!rows) { pInfo[extraid][pLoginAttempts]++; if (pInfo[extraid][pLoginAttempts] >= 3) { SendClientMessage(extraid, -1, "tas ete kick"); Kick(extraid); } else { Dialog_Show(extraid, LoginScreen, DIALOG_STYLE_PASSWORD, "connexion", "mauvais pass !!!!", "connecter", "kitter", pInfo[extraid][pLoginDate]); //SendServerMessage(extraid, -1, "Notice: Incorrect password specified (%d/3 attempts).", PlayerData[extraid][pLoginAttempts]); } } else { static query[128]; // Update the last login date. format(query, sizeof(query), "UPDATE `accounts` SET `IP` = '%s', `LoginDate` = '%s' WHERE `Username` = '%s'", pInfo[extraid][pIP], ReturnDate(), pInfo[extraid][pUsername]); mysql_tquery(g_iHandle, query); //mysql_tquery(g_iHandle, query, "OnQueryFinished", "dd", extraid, THREAD_LOAD_CHARACTER); // Load the character data. format(query, sizeof(query), "SELECT * FROM `characters` WHERE `ID` = '%s' LIMIT 1", pInfo[extraid][pID]); mysql_tquery(g_iHandle, query, "OnQueryFinished", "dd", extraid, THREAD_LOAD_CHARACTER); } }