MySQL BlueG - Get()Data - multi_threaded question
#4

Quote:
Originally Posted by Ahmad45123
Посмотреть сообщение
Use y_inline ?
That's some sense.

Quote:
Originally Posted by ikey07
Посмотреть сообщение
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;
}
Old version of MySQL I see you doing. No free_result or anything. Thanks for the interest anyway.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)