SA-MP Forums Archive
Problem: undefined symbol "handle_mysql", "strcpy" - 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: Problem: undefined symbol "handle_mysql", "strcpy" (/showthread.php?tid=616094)



Problem: undefined symbol "handle_mysql", "strcpy" - CoachCarter - 31.08.2016

It keeps showing me this errors, I updated mysql include and plugin but It still doesn't help.

Код:
../gamemodes/Build.pwn(23095) : error 017: undefined symbol "handle_mysql"
../gamemodes/Build.pwn(23110) : error 017: undefined symbol "strcpy"
../gamemodes/Build.pwn(23143) : error 017: undefined symbol "handle_mysql"
../gamemodes/Build.pwn(23155) : error 017: undefined symbol "handle_mysql"
What should I add in mysql include.


Re: Problem: undefined symbol "handle_mysql", "strcpy" - Shinja - 31.08.2016

PHP код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2) 
And about handle_mysql, there is no function like this, what it meant to do?


Re: Problem: undefined symbol "handle_mysql", "strcpy" - Sew_Sumi - 31.08.2016

strcpy isn't anything to do with the plugin, and even if you did update the plugin, that can actually cause things like this due to changes in the plugin that use newer methods/functions that the previous/subsequent versions don't.


-Edit- Searching for "mysql_handle" sa-mp returned a thread that said about putting
Код:
new mysql_handle;
at the top of your script.

It'd work out if all the lines that mention this error start with "mysql_handle = ".

strcpy is something else as well... https://sampforum.blast.hk/showthread.php?tid=309130


Re: Problem: undefined symbol "handle_mysql", "strcpy" - CoachCarter - 31.08.2016

strcpy Error is fixed. Thanks

mysql_tquery(handle_mysql, "SELECT * FROM `Table` ORDER BY `ID`", "OnLoadTABLEs", "");


Re: Problem: undefined symbol "handle_mysql", "strcpy" - Sew_Sumi - 31.08.2016

Do what I said about the handle up top of your script. It looks like an ID to track the mysql connection.


Re: Problem: undefined symbol "handle_mysql", "strcpy" - CoachCarter - 31.08.2016

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Do what I said about the handle up top of your script. It looks like an ID to track the mysql connection.
Thanks mate everything is fixed. REP for you and the other guy. Thanks for help.