Undefined Symbol & Invalid Expression
#2

at the top of the script:
pawn Код:
#include <foreach>
and about the sql connect:
pawn Код:
SQL_Connect() {
    g_iHandle = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD);

    if (mysql_errno(g_iHandle ) == 0) {
        printf("[SQL] Connection to \"%s\" failed! Please check the connection settings...\a", SQL_HOSTNAME);
    }
    else {
        printf("[SQL] Connection to \"%s\" passed!", SQL_HOSTNAME);
    }
}
If the above sql_connect didn't work or made an error then try:
pawn Код:
SQL_Connect() {
    g_iHandle = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD);

    if (mysql_connection(g_iHandle ) == 0) {
        printf("[SQL] Connection to \"%s\" failed! Please check the connection settings...\a", SQL_HOSTNAME);
    }
    else {
        printf("[SQL] Connection to \"%s\" passed!", SQL_HOSTNAME);
    }
}
Reply


Messages In This Thread
Undefined Symbol & Invalid Expression - by FeaRXPhobia - 11.11.2014, 00:38
Re: Undefined Symbol & Invalid Expression - by Eth - 11.11.2014, 00:46
Re: Undefined Symbol & Invalid Expression - by FeaRXPhobia - 11.11.2014, 00:51
Re: Undefined Symbol & Invalid Expression - by meta1 - 11.11.2014, 00:56
Re: Undefined Symbol & Invalid Expression - by FeaRXPhobia - 11.11.2014, 01:01
Re: Undefined Symbol & Invalid Expression - by meta1 - 11.11.2014, 01:17

Forum Jump:


Users browsing this thread: 1 Guest(s)