5 erros - 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: 5 erros (
/showthread.php?tid=493125)
5 erros -
iThePunisher - 07.02.2014
i have got those errors
pawn Код:
C:\Users\hacker\Desktop\lscnr script\filterscripts\doorsystem.pwn(47) : error 017: undefined symbol "mysql_query"
C:\Users\hacker\Desktop\lscnr script\filterscripts\doorsystem.pwn(89) : error 017: undefined symbol "mysql_query"
C:\Users\hacker\Desktop\lscnr script\filterscripts\doorsystem.pwn(107) : error 017: undefined symbol "mysql_query"
C:\Users\hacker\Desktop\lscnr script\filterscripts\doorsystem.pwn(205) : error 017: undefined symbol "mysql_query"
C:\Users\hacker\Desktop\lscnr script\filterscripts\doorsystem.pwn(233) : error 017: undefined symbol "mysql_query"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
here are
pawn Код:
mysql_query("SELECT MAX(ID) FROM `entrances`");
mysql_store_result();
pawn Код:
//
mysql_query("CREATE TABLE IF NOT EXISTS `entrances` ( \
`ID` int(3) NOT NULL, \
`Name` varchar(25) NOT NULL, \
`X` float NOT NULL, \
`Y` float NOT NULL, \
`Z` float NOT NULL, \
`exitX` float NOT NULL, \
`exitY` float NOT NULL, \
`exitZ` float NOT NULL, \
`Interior` int(5) NOT NULL, \
`VirtualW` int(3) NOT NULL \
) ENGINE=InnoDB DEFAULT CHARSET=latin1;");
}
Re: 5 erros -
QuaTTrO - 07.02.2014
Download mysql include:
http://files.g-stylezzz.com/mysql/rel/R7/a_mysql.inc
Re: 5 erros -
iThePunisher - 07.02.2014
i have a_mysql.inc
Re: 5 erros -
QuaTTrO - 07.02.2014
Which version?
Re: 5 erros -
iThePunisher - 07.02.2014
r7 by blue-g or what is his name
Re: 5 erros -
ACI - 07.02.2014
If you do have mySQL's include then put this at the top of your script ->
Re: 5 erros -
iThePunisher - 07.02.2014
Same problem
here is #defines that i use
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#include "../include/a_mysql.inc"
#include "../include/sscanf2.inc"
#include "../include/zcmd.inc"
#define MySQL_HOST "localhost"
#define MySQL_USER "root"
#define MySQL_DB "rpg"
#define MySQL_PASS ""
#define MAX_ENTRANCES (100)
#define MAX_ENTRANCE_NAME (25)
Want me to show the full filterscript?
Re: 5 erros -
ACI - 07.02.2014
No, we don't need to see your filterscript because I can also solve it. All you have to do is that you'll have to make sure that you have the mySQL plugin and register natives.
https://sampforum.blast.hk/showthread.php?tid=122983
Re: 5 erros -
BullseyeHawk - 07.02.2014
Attempt to include mysql like this:
If you got everything right, it should work.
Re: 5 erros -
iThePunisher - 07.02.2014
where is the link to download it 0_o no download link there!!