29.03.2016, 19:20
Quote:
|
I have spent the last half an hour or so to try and recreate your issue using your code. It doesn't seem to be working.
I am pretty sure this isn't true though, have you tried creating a small script that literally is a connection, then a function using information from the mysql and seeing if this works? If this doesn't have the same issues then, I'm all out of ideas. Best of luck. |
These are some of the includes I have in my gamemode:
Код:
#include <a_mysql>
#include <mysqlsettings> // Here lies the define MYSQL_HOST etc. along with the global variable "mysql".
#include <loginquery> //Here lies the loginquery script in the first post
OnGameModeInit() {
mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE, MYSQL_PASSWORD);
}
Код:
ConnectMySQL();
forward ConnectMySQL();
public ConnectMySQL()
{
mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE, MYSQL_PASSWORD);
return 1;
}


