04.08.2018, 18:07
(
Last edited by R3SpaWn0; 04/08/2018 at 08:46 PM.
)
I want to return name from SQLID:
EDIT: I ve tried to do this to make it but it seems wrong
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?!
EDIT: I ve tried to do this to make it but it seems wrong
PHP Code:
Plant_GetOwner(sqlid)
{
new
query[128];
format(query, sizeof(query), "SELECT `Character` FROM `characters` WHERE `ID` = '%d'", ReturnName(sqlid));
mysql_tquery(g_iHandle, query, "OnQueryFinished", "dd", sqlid, THREAD_FIND_USERNAME);
return query;
}
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?!