13.08.2011, 13:43
Hello !
I have this code:
I use ConnectMysql(); In the OnGameModeInit.
I have the mysql plugin, the bookseller a_mysql.inc and Mysql, and I have no error in the code.
I checked the login in PHP and they are correct.
When I launch my. Exe, I have the error message ...
Can you help me please ?
Thanks !
I have this code:
Код:
forward ConnectMysql();
public ConnectMysql()
{
mysql_connect("my_host", "my_username", "my_dbname", "my_password");
if(mysql_ping() == 1)
{
mysql_debug(1);
printf("[MYSQL] : Connexion sucessfull !");
}
else
{
printf("[MYSQL][ERROR] : ERROR !");
}
return 1;
}
I have the mysql plugin, the bookseller a_mysql.inc and Mysql, and I have no error in the code.
I checked the login in PHP and they are correct.
When I launch my. Exe, I have the error message ...
Can you help me please ?
Thanks !


