MySQL Problem!!! (Please Help!) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL Problem!!! (Please Help!) (
/showthread.php?tid=424965)
MySQL Problem!!! (Please Help!) -
MikeMike1997 - 24.03.2013
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.
Re: MySQL Problem!!! (Please Help!) -
Vince - 24.03.2013
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
\\.
Re: MySQL Problem!!! (Please Help!) -
MikeMike1997 - 24.03.2013
How could I find this?
Re: MySQL Problem!!! (Please Help!) -
Vince - 24.03.2013
It's probably in your macros somewhere. Can't really tell.