Error 35 - Argument mismatch [MySQL] - 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: Error 35 - Argument mismatch [MySQL] (
/showthread.php?tid=504067)
Error 35 - Argument mismatch [MySQL] -
Mado - 01.04.2014
Hi, I'm having trouble with this piece of code:
pawn Код:
new name[MAX_PLAYER_NAME], query[70];
GetPlayerName(playerid, name, sizeof(name));
format(query, sizeof(query), "SELECT * FROM Players WHERE pName = '%s'", name);
mysql_query(query, THREAD_CONNECTINGPLAYER, playerid);
The last line is giving me the error. It says the first argument is an argument mismatch.
Re: Error 35 - Argument mismatch [MySQL] -
Tingesport - 11.05.2014
Are you using BlueG's MySQL Plugin R6 or later?
Re: Error 35 - Argument mismatch [MySQL] -
Konstantinos - 11.05.2014
Open the include file of mysql and search for "mysql_query". See what's the first argument and change accordingly.
Note: If you use latest versions of BlueG's MySQL, the first argument should be the connection handle.