20.10.2016, 17:06
#define MYSQL_HOST "127.xxxxx"
#define MYSQL_USER "port_78xxx"
#define MYSQL_PASS "qv2axxxx"
#define MYSQL_DB "CodStats"
forward ConnectMySQL();
public ConnectMySQL()
{
if(mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS ))
{
mysql_debug(1);
printf("[MYSQL]: Connection to `%s` succesful!",SQL_DB);
}
else
{
printf("[MYSQL]: [ERROR]: Connection to `%s` failed!",SQL_DB);
}
return 1;
}
i have this error message
C:\Users\USER\Desktop\codww.pwn(547) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\codww.pwn(547) : error 017: undefined symbol "ConnectMySQL"
C:\Users\USER\Desktop\codww.pwn(54 : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\codww.pwn(54 : error 017: undefined symbol "ConnectMySQL"
C:\Users\USER\Desktop\codww.pwn(550) : error 017: undefined symbol "SQL_HOST"
C:\Users\USER\Desktop\codww.pwn(553) : error 017: undefined symbol "SQL_DB"
C:\Users\USER\Desktop\codww.pwn(557) : error 017: undefined symbol "SQL_DB"
C:\Users\USER\Desktop\codww.pwn(562) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
#define MYSQL_USER "port_78xxx"
#define MYSQL_PASS "qv2axxxx"
#define MYSQL_DB "CodStats"
forward ConnectMySQL();
public ConnectMySQL()
{
if(mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS ))
{
mysql_debug(1);
printf("[MYSQL]: Connection to `%s` succesful!",SQL_DB);
}
else
{
printf("[MYSQL]: [ERROR]: Connection to `%s` failed!",SQL_DB);
}
return 1;
}
i have this error message
C:\Users\USER\Desktop\codww.pwn(547) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\codww.pwn(547) : error 017: undefined symbol "ConnectMySQL"
C:\Users\USER\Desktop\codww.pwn(54 : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\codww.pwn(54 : error 017: undefined symbol "ConnectMySQL"
C:\Users\USER\Desktop\codww.pwn(550) : error 017: undefined symbol "SQL_HOST"
C:\Users\USER\Desktop\codww.pwn(553) : error 017: undefined symbol "SQL_DB"
C:\Users\USER\Desktop\codww.pwn(557) : error 017: undefined symbol "SQL_DB"
C:\Users\USER\Desktop\codww.pwn(562) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.