SA-MP Forums Archive
[HELP] Mysql r7 - 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: [HELP] Mysql r7 (/showthread.php?tid=525010)



[HELP] Mysql r7 - SHFaCeBook - 09.07.2014

Hello

i have problem

i changed [include] Mysql r5 in R7 , and i got this errors


Код:
error 017: undefined symbol "mysql_query"
error 017: undefined symbol "mysql_query"
:error 017: undefined symbol "mysql_query"



Re: [HELP] Mysql r7 - HyDrAtIc - 09.07.2014

Functions that are in R5 aren't the same one in R7, I don't know about MySQL but check the change logs of R7 and see the name or mysql_query or try to deep search. I hope this some kind-of helped you.


Re: [HELP] Mysql r7 - SHFaCeBook - 09.07.2014

Quote:
Originally Posted by HyDrAtIc
Посмотреть сообщение
Functions that are in R5 aren't the same one in R7, I don't know about MySQL but check the change logs of R7 and see the name or mysql_query or try to deep search. I hope this some kind-of helped you.
Thanks for reply

i search it already i dont find



R5 : http://files.g-stylezzz.com/mysql/rel/R5/a_mysql.inc

Mysql R7 : http://files.g-stylezzz.com/mysql/rel/R7/a_mysql.inc


Re: [HELP] Mysql r7 - Konstantinos - 09.07.2014

It was replaced with mysql_function_query and non-threaded queries were removed from R7. There's a tutorial about how to use threaded queries and if you decided to use them, it's recommended to update to R39-2 and there's also an example script in the github page.


Re: [HELP] Mysql r7 - SHFaCeBook - 09.07.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
It was replaced with mysql_function_query and non-threaded queries were removed from R7. There's a tutorial about how to use threaded queries and if you decided to use them, it's recommended to update to R39-2 and there's also an example script in the github page.
Thanks for answer

i remplaced : mysql_function_query , and i got errors again

Код:
(2543) : error 035: argument type mismatch (argument 1)
(2558) : error 035: argument type mismatch (argument 1)
(2571) : error 035: argument type mismatch (argument 1)
(2580) : error 035: argument type mismatch (argument 1)
(2621) : error 035: argument type mismatch (argument 1)
(2662) : error 035: argument type mismatch (argument 1)
(2673) : error 035: argument type mismatch (argument 1)
(2695) : error 035: argument type mismatch (argument 1)
(2715) : error 035: argument type mismatch (argument 1)
(2729) : error 035: argument type mismatch (argument 1)
(2742) : error 035: argument type mismatch (argument 1)
(2760) : error 035: argument type mismatch (argument 1)
(2777) : error 035: argument type mismatch (argument 1)
(2806) : error 035: argument type mismatch (argument 1)
(2819) : error 035: argument type mismatch (argument 1)
(2835) : error 035: argument type mismatch (argument 1)
(2848) : error 035: argument type mismatch (argument 1)
(2861) : error 035: argument type mismatch (argument 1)
(2874) : error 035: argument type mismatch (argument 1)
(2895) : error 035: argument type mismatch (argument 1)
(2919) : error 035: argument type mismatch (argument 1)
(2928) : error 035: argument type mismatch (argument 1)
(2936) : error 035: argument type mismatch (argument 1)
(2949) : error 035: argument type mismatch (argument 1)
its hard for did R39-2 (just R7 needed)


Re: [HELP] Mysql r7 - Konstantinos - 09.07.2014

It doesn't have the same parameters. Check the original thread of the mysql plugin (by BlueG) and see the parameters. The first parameter is the connection handle (the one mysql_connect returns), the query and the rest are cache (true in SELECT queries and false in INSERT/UPDATE) and a callback is needed if the cache is true (you select data). Well, check the tutorial by AndreT for more information.


Re: [HELP] Mysql r7 - SHFaCeBook - 09.07.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
It doesn't have the same parameters. Check the original thread of the mysql plugin (by BlueG) and see the parameters. The first parameter is the connection handle (the one mysql_connect returns) and the rest are cache (true in SELECT queries and false in INSERT/UPDATE) and a callback is needed if the cache is true (you select data). Well, check the tutorial by AndreT for more information.
Ok , and Thanks bro.