18.07.2012, 19:20
Quote:
PHP код:
|
la conexion la tengo bien asi que por eso no es.
conexion :
#define SQL_HOST "localhost"
#define SQL_USER "root"
#define SQL_DB "testing"
#define SQL_PASS "xxxx"
stock ConectarMySQL()
{
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
mysql_debug(1);
if(mysql_ping() == 1)
{
printf("\t\t[MYSQL]: Conexion Satisfactoria (DataBase: '%s')\n", SQL_DB);
}
else
{
printf("\t\t[MYSQL]: ERROR. Conexion Fallida (DataBase: '%s')\n", SQL_DB);
SendRconCommand("exit");
}
return 1;
}
y en OnGameModeInit :
ConectarMySQL();
saludos.