A Few Server Errors
#1

Basically, I've attempted re-compiling my Server with updated plugins and it's giving me 2 errors and around 150 warnings. (( I am not worried about the warnings, I am worried about the Errors )) Below are the errors and then underneath that the lines.

Код:
C:\Users\USER\Desktop\California Gaming\pawno\WCRP.pwn(356) : error 017: undefined symbol "enable_mutex"
C:\Users\USER\Desktop\California Gaming\pawno\WCRP.pwn(422) : error 017: undefined symbol "mysql_ping"
Код:
348 - 358	
{
	SetGameModeText(MODE_NAME);
	SendRconCommand("mapname San Andreas");
	#if debug
		mysql_debug(1);
	#else 
		mysql_debug(0);
	#endif
	enable_mutex(false);
	g_mysql_handle = mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_DATABASE,MYSQL_PASSWORD);
	Command_SetDeniedReturn( false );
          




419 - 425 	
}
	if(g_mysql_handle)
		mysql_close(g_mysql_handle);
	while(mysql_ping(g_mysql_handle) == 1) {
		#emit NOP
	}
	return 1;
Reply
#2

Are you sure you have got your BlueG's mySQL updated ? Both include and plugin. If so, re-open your pawno from the pawno file, hit 'new' and quit your pawno. Re-open the gamemode and test again.

edit: and yeah, same as below, mysql_ping was removed in higher versions of blueG's mysql, here you can check blueg's sql topic https://sampforum.blast.hk/showthread.php?tid=56564
Reply
#3

If you use R33 and higher version of MySQL, I think the function mysql_ping doesn't work here. Same was with me. Instead of mysql_ping use mysql_errno (read in wiki...).
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)