Quote:
Originally Posted by Flake.
PHP код:
GetNameFromSQL_ID(sqlid)
{
new query[128], name[64];
mysql_format(SQL_CONNECTION, query, sizeof(query), "SELECT Name FROM `Your_Table` WHERE ID = %d LIMIT 1", sqlid);
new Cache:result = mysql_query(SQL_CONNECTION, query);
cache_get_field_content(0, "Name", name, SQL_CONNECTION, 64); //or what ever your players name saves as
cache_delete(result);
return name;
}
Something like that should work.
|
Thank you so much. +REP'd