Need some help!
#1

Hi, can somebody help me by fixing this 2 errors? :
pawn Код:
samp03e_svr\gamemodes\Gm.pwn(255) : error 017: undefined symbol "MYSQL_HOST"
samp03e_svr\gamemodes\Gm.pwn(265) : error 017: undefined symbol "MYSQL_HOST"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
And here are the lines:
pawn Код:
#include <a_mysql>

ConnectMySQL()
{
        if(mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS))//line 255
        print("[MySQL] Connection to the MySQL Database was successfully!");

    else
        print("[MySQL] Could not connect to the MySQL Database!");
}

CheckMySQL()
{
    if(mysql_ping() == -1)
        mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);//line 265
}
Reply
#2

You must define your MySQL host at the top of script.
Reply
#3

Quote:
Originally Posted by RXservers
Посмотреть сообщение
You must define your MySQL host at the top of script.
The errors were because I've defined it with
Код:
#define SQL_HOST	"localhost"//I changed it to MYSQL_HOST
And thank you for the help!
Reply
#4

Edit:Fixed!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)