SA-MP Forums Archive
mysql_query; 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_query; argument type mismatch (/showthread.php?tid=517457)



mysql_query; argument type mismatch - Jack_Leslie - 05.06.2014

pawn Код:
new query[200];
    format(query, sizeof(query), "SELECT FULLNAME from `accounts` WHERE fullname = '%s'", GetPlayersName(playerid));
    mysql_query(query);
error on mysql_qeury(query); line


Re: mysql_query; argument type mismatch - HyperZ - 05.06.2014

Which plugin do you use?

If you are using R33+ MySQL plugin, it could be:
pawn Код:
mysql_query(conhandle, query); // change "conhandle" to your connection handle..
Also check this out https://sampwiki.blast.hk/wiki/MySQL/R33


Re: mysql_query; argument type mismatch - Jack_Leslie - 05.06.2014

Quote:
Originally Posted by HyperZ
Посмотреть сообщение
Which plugin do you use?

If you are using R33+ MySQL plugin, it could be:
pawn Код:
mysql_query(conhandle, query); // change "conhandle" to your connection handle..
Also check this out https://sampwiki.blast.hk/wiki/MySQL/R33
Thanks, fixed.