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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MySQL Problem? (/showthread.php?tid=242771)



MySQL Problem? - iGetty - 20.03.2011

Код:
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(2776) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(5990) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(6009) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(6028) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(6059) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(6487) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(6503) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(6552) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(6572) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(6609) : error 017: undefined symbol "mysql_retrieve_row"
C:\Documents and Settings\Callum\Desktop\KEEP\LS SCRIPT\gamemodes\qrp.pwn(6668) : error 017: undefined symbol "mysql_retrieve_row"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.
I tried
pawn Код:
#define mysql_retrieve_row
AND
pawn Код:
new mysql_retrieve_row;



Re: MySQL Problem? - iJumbo - 20.03.2011

show lines please


Re: MySQL Problem? - Calgon - 20.03.2011

mysql_retrieve_row is a FUNCTION from the MySQL plugin, you can't just declare it as a variable or a macro, you NEED to get the include / plugin.


Re: MySQL Problem? - 1337connor - 20.03.2011

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
mysql_retrieve_row is a FUNCTION from the MySQL plugin, you can't just declare it as a variable or a macro, you NEED to get the include / plugin.
As Calg000ne says here..
If you need to know how to include the MySQL Plugin.. download it, put it in /pawn/includes
and in your script, at the top.. put
pawn Код:
#include <mysql>
or what ever plugin it is. a_mysql or w.e


Re: MySQL Problem? - iGetty - 20.03.2011

I have already got the #include
pawn Код:
<a_mysql>
It just keeps giving me them errors?
:/


Re: MySQL Problem? - Vince - 20.03.2011

What plugin are you using? There are like 4 of them. Some use mysql_fetch_row, others use mysql_retrieve_row.


Re: MySQL Problem? - iGetty - 20.03.2011

This Is what I am using.