Mysql error
#3

Код HTML:
#define         SQL_HOST	"localhost"
#define         SQL_USER    "root"
#define         SQL_PASS    ""
#define         SQL_DB      "server2"

function ConnectionDB()
{
    mysql = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
	if(mysql_errno(mysql) == 0)
	{
	    printf("SQL: The connection to database has been established successfully.", SQL_DB);
	    printf("\n");
	}
	else
	{
   		printf("SQL: %s can't connect to %s hosted on %s.", SQL_USER, SQL_DB, SQL_HOST);
  		SendRconCommand("exit");
	}
	return 1;
}

And this is under OnGameModeInit

ConnectionDB();
what is wrong ? or what i forgot ? cause the last version of saving the account worked fine but the account info's was saving every single sec and that is not good
Reply


Messages In This Thread
Mysql error - by StR_MaRy - 11.08.2017, 15:10
Re: Mysql error - by Vince - 11.08.2017, 15:30
Re: Mysql error - by StR_MaRy - 11.08.2017, 19:03
Re: Mysql error - by Banditul18 - 11.08.2017, 19:41

Forum Jump:


Users browsing this thread: 2 Guest(s)