05.06.2015, 12:39
Having non-threaded queries with R33+ would be something like the code below and if I understand correctly, your variable pPass is an integer?
Though using threaded queries and a variable (global) for the connection handle is recommended.
PHP код:
new pass[128];
mysql_format(1, pass,sizeof(pass),"SELECT pPass FROM users WHERE pName = '%e'", PlayerName(playerid));
new Cache:result = mysql_query(1, pass, true);
if (cache_get_row_count()) PlayerInfo[playerid][pPass] = cache_get_row_int(0, 0);
cache_delete(result);