Problem with mysql - 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: Problem with mysql (
/showthread.php?tid=646903)
Problem with mysql -
Zehoax - 26.12.2017
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"
Re: Problem with mysql -
Zeth - 26.12.2017
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
Re: Problem with mysql -
GTLS - 26.12.2017
Quote:
Originally Posted by Debjit
|
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.
Re: Problem with mysql [Fixed] -
Zehoax - 26.12.2017
Edit: Fixed