28.03.2018, 14:56
Here's the code in question:
OnPlayerConnect:
OnAccountCheck:
As you can see, I did not type a number (or address), rather, I typed a string.
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);
Код:
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])
}

