31.07.2016, 19:08
g_iHandle is your connect so, not SQL_connecte
Here is the new code
Here is the new code
PHP код:
mysql_format(g_iHande, query, sizeof(query),"SELECT `Pass`, `ID` FROM `utilisateur` WHERE `Nom` = '%e' LIMIT 1", nsql[playerid]);
mysql_tquery(g_iHandle, query, "OnAccountCheck", "i", playerid);
PHP код:
ache_get_data(rows, fields);//let's get the rows and fields from the database.
if(rows) //if there is row
{//then
cache_get_field_content(0, "Pass", pInfo[playerid][Pass]);
pInfo[playerid][pID] = cache_get_field_content_int(0, "ID");
}