Problem: undefined symbol "handle_mysql", "strcpy"
#1

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.
Reply
#2

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?
Reply
#3

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
Reply
#4

strcpy Error is fixed. Thanks

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)