Help Mysql error
#1

#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.
Reply
#2

Do you write the "xxxxx" or is it like that in your script for real?
Reply
#3

xxx = censored
can you help me please
Reply
#4

bump
Reply
#5

Regarding the host, user, pass, and db errors, you defined them as "MYSQL_", but when you try to connect, you use "SQL_", I think you know how to fix that. As for the other errors, there needs to be more context.
Reply
#6

Get the "MY" from your defined mysql and post the upcoming error, if any.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)