Problem with mysql
#1

So im trying to create a server with a database. And im running in to some errors.

What i have done
- I am running pawno from the folder with the a_mysql.inc
- I have the mysql plugin in the plugins folder, and i have libmySQL in the main folder.

So, if i include
#include <mysql>
I get this error : X:\x\x\x\x\gamemodes\rp_test.pwn(57) : fatal error 100: cannot read from file: "mysql"
__________________________________________________ ____________________________________________

And if i include
#include <a_mysql>
I get the following error. :
x:\x\x\x\x\gamemodes\rp_test.pwn(69) : error 017: undefined symbol "MYSQL_HOST"
Reply
#2

Change it to
Quote:

#include <a_mysql>

Код HTML:
#define   MYSQL_HOST   "<declare the hostname here>"
Refer to this for a tutorial https://sampforum.blast.hk/showthread.php?tid=627520
Reply
#3

Quote:
Originally Posted by Debjit
Посмотреть сообщение
Change it to


Код HTML:
#define   MYSQL_HOST   "<declare the hostname here>"
Refer to this for a tutorial https://sampforum.blast.hk/showthread.php?tid=627520
This ^^^

its a_mysql not mysql. also, follow above or any other tutorial on SAMP forums for working with mysql. make sure you follow correct tutorial according to your mysql version.
Reply
#4

Edit: Fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)