[MySQL] How to return name from SQLID?
#7

Check that: https://sampwiki.blast.hk/wiki/MySQL/R40

PHP Code:
Plant_GetOwner(sqlid

    new 
        
query[128],
        
Cache:query_cache
    
format(querysizeof(query), "SELECT `Character` FROM `characters` WHERE `ID` = '%d'"ReturnName(sqlid)); 
    
query_cache mysql_query(g_iHandlequery"OnQueryFinished""dd"sqlidTHREAD_FIND_USERNAME);
    if(
cache_num_rows())
        
cache_get_value_index(00query);
    else
        
strcpy(query"N/A"); 
    
cache_delete(query_cache);
    return 
query

Reply


Messages In This Thread
[MySQL] How to return name from SQLID? - by R3SpaWn0 - 04.08.2018, 18:07
Re: [MySQL] How to return name from SQLID? - by Florin48 - 04.08.2018, 18:18
Re: [MySQL] How to return name from SQLID? - by R3SpaWn0 - 04.08.2018, 18:20
Re: [MySQL] How to return name from SQLID? - by Dayrion - 04.08.2018, 18:53
Re: [MySQL] How to return name from SQLID? - by R3SpaWn0 - 04.08.2018, 18:57
Re: [MySQL] How to return name from SQLID? - by R3SpaWn0 - 04.08.2018, 20:46
Re: [MySQL] How to return name from SQLID? - by Dayrion - 04.08.2018, 20:53
Re: [MySQL] How to return name from SQLID? - by R3SpaWn0 - 04.08.2018, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)