Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnGameModeInit()
- {
- printf("Iniciando conexión MySQL: (Servidor: '%s', Usuario: '%s', Clave: '%s', Base de Datos: '%s')", MySQL_Servidor, MySQL_Usuario, MySQL_Clave, MySQL_BD);
- Conecction = mysql_connect(MySQL_Servidor, MySQL_Usuario, MySQL_BD, MySQL_Clave);
- if(mysql_ping() == 1) //Comprobamos si se conectó
- {
- printf("Conexión a la base de datos realizada correctamente.");
- }
- else //Caso contrario:
- {
- print("Conexión a la base de datos no realizada.");
- mysql_close(); //Cerramos la conexión
- SendRconCommand("exit"); //Cerramos la consola para evitar bug's
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement