05.12.2010, 14:46
Hello.
For some reason my gamemode refuses to connect to MySQL. I have made sure that the server is up and running (ping'ed and tried to connect with php). The mysql is included in the pwn file. libmysql.dll and mysql.dll is placed in the right folders. The DB information match.
OnGameModeInit()
Edit:
Here's the error.
Sincerly hanzen
For some reason my gamemode refuses to connect to MySQL. I have made sure that the server is up and running (ping'ed and tried to connect with php). The mysql is included in the pwn file. libmysql.dll and mysql.dll is placed in the right folders. The DB information match.
Код:
#define SQL_HOST "localhost" #define SQL_USER "root" #define SQL_PASS "hidden" #define SQL_DB "samp"
Код:
mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB);
Here's the error.
Код:
[16:16:46] [MySQL] Error (0): Function: mysql_connect failed, mysql was not initialized on this handle.