SA-MP Forums Archive
Mysql error - 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 error (/showthread.php?tid=582440)



Mysql error - danielpalade - 20.07.2015

I get this error
Код:
Argument type mismatch (argument 3)
On this line
Код:
new Cache: resultoccc = mysql_query(handle,  "INSERT INTO `clans` (`clanName`) VALUES('%s')", string2);
Can someone help me to fix this error?


Re: Mysql error - danielpalade - 20.07.2015

Anybody? I really need this fixed!


Re: Mysql error - thaKing - 20.07.2015

Maybe this will work.
Код:
query[160],
format(query, sizeof(query), "INSERT INTO `clans` (`clanName`) VALUES('%s')", string2);
mysql_tquery(g_iHandle, query);
What MySQL plugin do you use?