cache_get_field_content_int - no active cache
#10

Quote:
Originally Posted by Logic_
View Post
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:
CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_OBJECT_SDFloat:drawdistance STREAMER_OBJECT_DDSTREAMER_TAG_AREA areaid STREAMER_TAG_AREA -1priority 0
You might just want to modify the "streamdistance", why would you define the parameters in between "rz" and "streamdistance"? So you can just directly use:

PHP Code:
CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rz, .streamdistance 100.0); 
That's not the problem,

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(dbhandlequerysizeof(query), "SELECT name FROM `users` WHERE id = '%d' LIMIT 1"sqlid);
    new 
Cache:cache mysql_query(dbhandlequery);
    
    if(!
cache_num_rows())
        
returnString "Unknown";
        
    else
        
cache_get_field_content(0"name"returnString60);
    
    
cache_delete(cache);
    return 
returnString;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)