Mysql - connection already exists
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Where is actually your mysql_connect line? It should be like this:
pawn Код:
ConnectMySQL()
{
    mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_TEXT);
    mysql = mysql_connect(...);
 
    if (!mysql_errno(mysql)) printf("[MYSQL]: Connected to `%s`.",SQL_DB);
    else printf("[MYSQL]: Failed to connect to `%s`.",SQL_DB);
}
and in OnGameModeInit:
pawn Код:
ConnectMySQL();
Still the same; registration works but i can't login
Reply


Messages In This Thread
Mysql - connection already exists - by Battlezone - 04.06.2015, 21:40
Re: Mysql - connection already exists - by Battlezone - 05.06.2015, 14:26
Re: Mysql - connection already exists - by Konstantinos - 05.06.2015, 14:32
Re: Mysql - connection already exists - by Battlezone - 05.06.2015, 14:46
Re: Mysql - connection already exists - by Konstantinos - 05.06.2015, 15:15
Re: Mysql - connection already exists - by Battlezone - 05.06.2015, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)