mysql_query eror
#1

Код:
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(623) : error 017: undefined symbol "mysql_query"
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : warning 236: unknown parameter in substitution (incorrect #define pattern)
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : warning 236: unknown parameter in substitution (incorrect #define pattern)
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : warning 236: unknown parameter in substitution (incorrect #define pattern)
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : warning 236: unknown parameter in substitution (incorrect #define pattern)
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : warning 236: unknown parameter in substitution (incorrect #define pattern)
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : warning 236: unknown parameter in substitution (incorrect #define pattern)
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : warning 236: unknown parameter in substitution (incorrect #define pattern)
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : error 029: invalid expression, assumed zero
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : warning 215: expression has no effect
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : error 029: invalid expression, assumed zero
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : warning 215: expression has no effect
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : error 029: invalid expression, assumed zero
C:\Users\matthew\Desktop\AFRPLinux\gamemodes\afrp.pwn(2051) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
this is what i get here is the line
Код:
 line 623 mysql_query("UPDATE playeraccounts SET playerStatus = '0' WHERE playerStatus = '1'");
Код:
line 2051	mysql_query("SELECT * FROM atms", THREAD_LOAD_ATMS);
Reply
#2

Not sure, I'm having a hard time with mysql at the moment too, but what i think is this:
pawn Код:
mysql_query("UPDATE playeraccounts SET playerStatus = '0' WHERE playerStatus = '1'");
has to be
pawn Код:
mysql_query("UPDATE `playeraccounts` SET `playerStatus` = '0' WHERE `playerStatus` = '1'");
What I did is add ` before and after a row name.
I guess it's the same for the other line, add ` before and after the row name.

EDIT: I just saw the first error, is about the undefined mysql_query..
now, it's a strange error, and it makes me think you haven't included the mysql include..
not sure though
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)