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

I want to return name from SQLID:

EDIT: I ve tried to do this to make it but it seems wrong

PHP Code:
Plant_GetOwner(sqlid)
{
    new
        
query[128];
    
format(querysizeof(query), "SELECT `Character` FROM `characters` WHERE `ID` = '%d'"ReturnName(sqlid));
    
mysql_tquery(g_iHandlequery"OnQueryFinished""dd"sqlidTHREAD_FIND_USERNAME);
    return 
query;

and the result is:


https://imgur.com/a/PjwRQAy

why?

thank you !


EDIT: I tried to make another way, to get player name on create the plant and insert to database but it happens this..

format(MarihuanaInfo[i][PlantBy], 24, Name(playerid))


https://imgur.com/a/Znbjfik

in database name is: KАЕд

why this happens?!
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)