Erro 017: sнmbolo indefinido "CR_CONN_HOST_ERROR" - 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: Erro 017: sнmbolo indefinido "CR_CONN_HOST_ERROR" (
/showthread.php?tid=630923)
Erro 017: sнmbolo indefinido "CR_CONN_HOST_ERROR" -
axellech - 20.03.2017
Anyone help me with this? Or explain to me what is wrong! Plz.
Код:
../gamemodes/Build.pwn(27874) : error 017: undefined symbol "CR_CONN_HOST_ERROR"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
This is the Code that is error, what is wrong with it?
Код:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
{
switch(errorid)
{
case CR_CONN_HOST_ERROR:
{
printf("MySQL CONNECTION FAILED!");
}
case CR_SERVER_GONE_ERROR:
{
printf("Lost connection to server, trying reconnect...");
mysql_reconnect(connectionHandle);
}
case ER_SYNTAX_ERROR:
{
printf("----------------------------------------------");
printf(" [MYSQL] SOMETHING WENT WRONG", query);
printf("QUERY: `%s`", query);
printf("CALLBACK: %s", callback);
printf("ERROR: %s", error);
printf("----------------------------------------------");
}
}
return 1;
}
Re: Erro 017: sнmbolo indefinido "CR_CONN_HOST_ERROR" -
AndreiWow - 20.03.2017
You need to define... CR_CONN_HOST_ERROR
Re: Erro 017: sнmbolo indefinido "CR_CONN_HOST_ERROR" -
axellech - 20.03.2017
Can you help me? how I do?
Re: Erro 017: sнmbolo indefinido "CR_CONN_HOST_ERROR" -
J0sh... - 20.03.2017
#define CR_CONN_HOST_ERROR 2003
(This is not in a_mysql.inc normally, so just add this define.)