5 erros
#1

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(query);
pawn Код:
mysql_query(query);
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;"
);
}
Reply
#2

Download mysql include: http://files.g-stylezzz.com/mysql/rel/R7/a_mysql.inc
Reply
#3

i have a_mysql.inc
Reply
#4

Which version?
Reply
#5

r7 by blue-g or what is his name
Reply
#6

If you do have mySQL's include then put this at the top of your script ->
pawn Код:
#include "a_mySQL"
Reply
#7

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

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

Attempt to include mysql like this:
pawn Код:
#include <a_mysql>
If you got everything right, it should work.
Reply
#10

where is the link to download it 0_o no download link there!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)