MySQL Problem!!! (Please Help!)
#1

Hit this error with MySQL, Can someone please help?

Код:
ConnectMySQL()
{
	if(mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS))
	{
	    print("[MySQL] Connection to the MySQL Database was successfully!");
	}
	else
	{
	    print("[MySQL] Could not connect to the MySQL Database!");
	}
}

CheckMySQL()
{
	if(mysql_ping() == -1)
		mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);
}
Код:
F:\True City Reality\gamemodes\xG2.pwn(929) : error 027: invalid character constant
F:\True City Reality\gamemodes\xG2.pwn(929) : error 029: invalid expression, assumed zero
F:\True City Reality\gamemodes\xG2.pwn(929) : warning 215: expression has no effect
F:\True City Reality\gamemodes\xG2.pwn(929) : error 001: expected token: ";", but found "."
F:\True City Reality\gamemodes\xG2.pwn(929) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Invalid character constant means that you have a faulty backslash somewhere. If you need directory separators then use the forward slash. If you need a literal backslash then use \\.
Reply
#3

How could I find this?
Reply
#4

It's probably in your macros somewhere. Can't really tell.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)