Problem with obtaining information from my database
#4

Here's the code in question:

OnPlayerConnect:

Код:
mysql_format(mysql, query, sizeof(query), "SELECT `Password`, `ID` FROM `Users` WHERE `Username` = '%e' LIMIT 1", playerName);
mysql_tquery(mysql, query, "OnAccountCheck", "i", playerid);
OnAccountCheck:

Код:
new rows;
	
cache_get_row_count(rows);
	
if(rows)
{
    cache_get_value_name(0, "Password", pInfo[playerid][Password]);
    cache_get_value_name_int(0, "ID", pInfo[playerid][ID])
}
As you can see, I did not type a number (or address), rather, I typed a string.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)