Mysql Error using the Mysql 2.1.1 Plugin
#1

Code:
Public OnFilterScriptInit
{
 	Connection = mysql_init();
	mysql_connect(MYSQL_HOSTNAME, MYSQL_USERNAME, MYSQL_PASSWORD, MYSQL_DATABASE, Connection, 1);
	return true;
}
Gives me the following error's

Code:
error 017: undefined symbol "mysql_init"
warning 213: tag mismatch
warning 213: tag mismatch
warning 202: number of arguments does not match definition
On the following 2 lines:

Code:
 	Connection = mysql_init();
	mysql_connect(MYSQL_HOSTNAME, MYSQL_USERNAME, MYSQL_PASSWORD, MYSQL_DATABASE, Connection, 1);
Reply
#2

Add at the top of your script:
pawn Code:
new MySQL:Connection;

// and replace your mysql_init with this
mysql_init(LOG_ALL);
Reply
#3

include update

#include <mysql> just do not a_mysql I have such a problem has been)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)