Issue with mysql_fetch_int
#2

You seem to be using the wrong syntax.

Check this out:
(This is from my script)

Quote:

new query[256];
format(query, sizeof(query), "SELECT %s FROM %s WHERE id = %d LIMIT 1", fieldname, tablename, sqlid);
mysql_query(query);
mysql_store_result();
new result = mysql_fetch_int();
mysql_free_result();
return result;

You may also wanna check out this page:

https://sampwiki.blast.hk/wiki/MySQL#mysql_fetch_int
Reply


Messages In This Thread
Issue with mysql_fetch_int - by Jonesy96 - 08.12.2013, 01:01
Re: Issue with mysql_fetch_int - by Dokins - 08.12.2013, 01:07
Re: Issue with mysql_fetch_int - by Jonesy96 - 08.12.2013, 01:12
Re: Issue with mysql_fetch_int - by Dokins - 08.12.2013, 01:15

Forum Jump:


Users browsing this thread: 2 Guest(s)