SA-MP Forums Archive
MySQL Argument type mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL Argument type mismatch (/showthread.php?tid=603101)



MySQL Argument type mismatch - Wex56 - 18.03.2016

So I have problem with this line
Код:
mysql_query("SELECT MAX(ID) FROM `Automobili`",	THREAD_AUTOMOBILI);
It's throwing me error
(5566) : error 035: argument type mismatch (argument 1)

Iam using BlueG's plugin..


Re: MySQL Argument type mismatch - AndySedeyn - 18.03.2016

Read the wiki:
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_query

Quote:
Originally Posted by Wiki
PHP код:
(conhandlequery[], bool:use_cache true)
// conhandle            The connection handle this will be processed on.
// query[]                The query you want to execute.
// bool:use_cache        Set to true if you intend to use the cache/result mysql_query returns (optional). 
I recommend using threaded queries, though.