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



Mysql Plugin - anou1 - 06.01.2014

Hi everybody,


I updated the msqly plugin of my test server. (( changed the include the pawn folder and in plugins folder))
But now I have 2 errors when I compile,

test2.pwn(106) : error 035: argument type mismatch (argument 1)
test2.pwn(302) : error 035: argument type mismatch (argument 1)

Line 106 : mysql_query(Query);

Line 302: mysql_query(Query);


Is it a problem of compatibility with mysql r35 b ?
Or mysql_query changed into an other syntax ?



Thank you


Re: Mysql Plugin - sammp - 06.01.2014

With the new version mysql_query has more parameters.. I advise you use mysql_tquery or even use the ORM functions


Re: Mysql Plugin - anou1 - 06.01.2014

Thank you, it was the parameters
I used
mysql_query(1,Query,false);

Now it works.


Re: Mysql Plugin - sammp - 06.01.2014

Yeah it's for caching i believe.