GetRowDataByName() - invalid row index ('0')
#9

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);
			}
		}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)