29.03.2019, 11:19
Quote:
So you guys completely ignored my solution...
and you use "." when you want to specify a parameter in your code and want the other parameters in between that specific parameter to use default value. such as: PHP Code:
PHP Code:
|
As far i found, it stucks on SQLtoNAME,
surely something is wrong in this function, please help me to find out
PHP Code:
SQLtoNAME(sqlid)
{
new query[120], returnString[60];
mysql_format(dbhandle, query, sizeof(query), "SELECT name FROM `users` WHERE id = '%d' LIMIT 1", sqlid);
new Cache:cache = mysql_query(dbhandle, query);
if(!cache_num_rows())
returnString = "Unknown";
else
cache_get_field_content(0, "name", returnString, 60);
cache_delete(cache);
return returnString;
}