04.08.2018, 20:18
pawn Код:
GetPlant_Owner(sqlid)
{
new query, id;
mysql_format(handle, query, sizeof(query), "SELECT `Character` FROM `characters` WHERE `ID` = '%d'", ReturnName(sqlid));
new Cache:result = mysql_query(handle, query);
if(cache_num_rows())
{
cache_get_value_int(id, "id", id);
}
cache_delete(result);
return id;
}