18.12.2015, 16:35
pawn Код:
PublicEx GetItemName(objectid)
{
new query[64];
format(query, sizeof(query), "SELECT `name` FROM `items_data` WHERE `objectid` = %d", objectid);
mysql_query(1,query);
mysql_store_result();
mysql_fetch_field("name",query);
mysql_free_result();
return query;
}