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



Mysql problem - Zaec - 09.03.2012

Can someones help me? Then I used R5 mysql inc and plugin it worked fine,but now i using R7 and i got problems.

Error:

Код:
C:\Documents and Settings\Administrator\Desktop\Free-Roam\gamemodes\fr.pwn(157) : error 017: undefined symbol "mysql_query"
Line:

Код:
		mysql_query(Query);
I using BlueG's mysql plugin


Re: Mysql problem - Zaec - 09.03.2012

God... maybe someones can help? 4 threads and nothing...


Re: Mysql problem - BrandyPenguin - 09.03.2012

Do you have included a_mysql include file? What version you use?

// This forum requires that you wait 120 seconds between posts. Please try again in 35 seconds.


Re: Mysql problem - Richie© - 09.03.2012

Check the mysql_query macro in the mysql include. I had same problem.

I used it like this:
pawn Код:
mysql_query(Query, THREAD_LOADSOMETHING);
This would not work by default, so i had to change the macro to this:
pawn Код:
#define mysql_query(%1,%2) \
    mysql_function_query(gConnectionhandle, %1, false, "OnQueryFinish", "siii", %1, %2, -1, 1)