25.05.2014, 21:13
Trying to change my script over to MySQL and I am getting the following error. I blocked out the password spot and part of the IP part.
pawn Код:
19. #define MYSQL_HOST 100.42.##.#:2082
20. #define MYSQL_USER nathant_naterp
21. #define MYSQL_DB nathant_naterp
22. #define MYSQL_PASS *******
23. #undef MAX_PLAYERS
24. #define MAX_PLAYERS 20
25.
26. ConnectMySQL()
27. {
28. if(mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS)){
29. print("[MySQL] Connection to the MySQL Database was successfully!");
30. } else {
31. print("[MySQL] Could not connect to the MySQL Database!");
32. }
33. }
Код:
C:\Users\Nate\Dropbox\SAMP 2\gamemodes\nateRP.pwn(28) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Dropbox\SAMP 2\gamemodes\nateRP.pwn(28) : error 029: invalid expression, assumed zero C:\Users\Nate\Dropbox\SAMP 2\gamemodes\nateRP.pwn(28) : warning 215: expression has no effect C:\Users\Nate\Dropbox\SAMP 2\gamemodes\nateRP.pwn(28) : error 001: expected token: ";", but found ":" C:\Users\Nate\Dropbox\SAMP 2\gamemodes\nateRP.pwn(28) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase