What's the problem?
#1

Code:
public OnGameModeInit()
{
    if(mysql_connect(SQL_HOST, SQL_USER, SQL_PASSWORD, SQL_DATABASE, sqlConnection, 1))
    {
		printf("[DATABASE]: Connection failed to the database '%s'.", SQL_DATABASE);
	}
	else
	{
		printf ("[MYSQL]: Connection established to database '%s'.", SQL_DATABASE);
	}
	mysql_log(ERROR | WARNING);
    return true;
}
Of course I have my SQL info defined. sqlConnection is defined as
new MySQLqlConnection
4 errors on one line:
Code:
    if(mysql_connect(SQL_HOST, SQL_USER, SQL_PASSWORD, SQL_DATABASE, sqlConnection, 1))
invalid expression assumed zero
expression has no effect
The fucks going on?
Reply


Messages In This Thread
What's the problem? - by Wavybone - 10.04.2019, 04:08
Re: What's the problem? - by Crayder - 10.04.2019, 04:29
Re: What's the problem? - by Wavybone - 10.04.2019, 04:34
Re: What's the problem? - by iorp - 10.04.2019, 05:09

Forum Jump:


Users browsing this thread: 1 Guest(s)