08.12.2013, 01:07
You seem to be using the wrong syntax.
Check this out:
(This is from my script)
You may also wanna check out this page:
https://sampwiki.blast.hk/wiki/MySQL#mysql_fetch_int
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; |
https://sampwiki.blast.hk/wiki/MySQL#mysql_fetch_int