Erro 017: sнmbolo indefinido "CR_CONN_HOST_ERROR"
#1

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;
}
Reply
#2

You need to define... CR_CONN_HOST_ERROR
Reply
#3

Can you help me? how I do?
Reply
#4

#define CR_CONN_HOST_ERROR 2003

(This is not in a_mysql.inc normally, so just add this define.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)