SA-MP Forums Archive
Undefined Symbol 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: Undefined Symbol Error (/showthread.php?tid=521330)



Undefined Symbol Error - Jigsaw123 - 22.06.2014

Hello,

I keep getting this error, when i try to compile my script. Does anybody know how to fix it? :

PHP код:
C:\Users\USER\Documents\Backup\RP\pawno\WCRP.pwn(430) : error 017undefined symbol "enable_mutex"
C:\Users\USER\Documents\Backup\RP\pawno\WCRP.pwn(480) : error 035argument type mismatch (argument 1)
C:\Users\USER\Documents\Backup\RP\pawno\WCRP.pwn(497) : error 017undefined symbol "mysql_ping" 



Re: Undefined Symbol Error - RenovanZ - 22.06.2014

Show us code 480.
And, what MySQL version are you using ?


Re: Undefined Symbol Error - Clad - 22.06.2014

What version of MySQL do you use ? I think you should upload it to r6 or r5


Re: Undefined Symbol Error - Jigsaw123 - 22.06.2014

Lines 480 :

PHP код:
     mysql_query("USE xxxxx"); 
(( I used xxxxx to protect the actual details )).

P.S: May i have the link where i can download the R5 or R6 version of MySQL?


Re: Undefined Symbol Error - Clad - 22.06.2014

Quote:
Originally Posted by Jigsaw123
Посмотреть сообщение
P.S: May i have the link where i can download the R5 or R6 version of MySQL?
Click


Re: Undefined Symbol Error - Jigsaw123 - 22.06.2014

I've installed the default mySQL which i had.. and i got one error left :

PHP код:
C:\Users\USER\Documents\Backup\RP\pawno\WCRP.pwn(480) : error 017undefined symbol "mysql_query" 



Re: Undefined Symbol Error - Clad - 22.06.2014

last Error must be fixed by you


Re: Undefined Symbol Error - Jigsaw123 - 22.06.2014

Idk how to.. Im crap at scripting :[


Re: Undefined Symbol Error - Clad - 22.06.2014

pawn Код:
#define mysql_query(%1,%2) \
mysql_function_query(gConnectionhandle, %1, false, "OnQueryFinish", "siii", %1, %2, -1, 1)
Change this in your .inc
I didn't test it.