Please help me! Got some errors tryed to find how to fix but no sucess!
#1

Код:
morphinc.inc(43) : warning 217: loose indentation
morphinc.inc(44) : warning 217: loose indentation
a_sampmysql.inc(8) : error 010: invalid function or declaration
(1791) : error 017: undefined symbol "samp_mysql_connect"
(1801) error 017: undefined symbol "samp_mysql_connect"
Код:
public MySQLConnect(sqlhost[], sqluser[], sqlpass[], sqldb[]) // by Luk0r
{
	print("MYSQL: Attempting to connect to server...");
	samp_mysql_connect(sqlhost, sqluser, sqlpass); (this line)
	samp_mysql_select_db(sqldb);
	if(samp_mysql_ping()==0)
	{
		print("MYSQL: Database connection established.");
		return true;
	}
	else
	{
		print("MYSQL: Connection error, retrying...");
		samp_mysql_connect(sqlhost, sqluser, sqlpass); (this line)
		samp_mysql_select_db(sqldb);
		if(samp_mysql_ping()==0)
		{
			print("MYSQL: Reconnection successful. We can continue as normal.");
			return true;
		}
		else
		{
			print("MYSQL: Could not reconnect to server, terminating server...");
			SendRconCommand("exit");
			return false;
		}
	}
}
Reply
#2

Are you sure you included the MYSQL plugin?
pawn Код:
#include <REPLACEmeWITHyourPLUGINname>
Reply
#3

#include <morphinc>
#include <a_sampmysql>

there it is... downloaded new a_sampmysql and morphinc but no succes!
Reply
#4

What plugin is a_sampmysql?
Reply
#5

Still the same error! Just no changes... its mysql plugin... changed it with plugins name but no changes #include <sampmysql>
Reply
#6

Код:
a_sampmysql.inc(8) : error 010: invalid function or declaration
Код:
native samp_mysql_connect(server[], user[], password[]);
//thats line 8

now only this error stayed! and

(1791) : error 017: undefined symbol "samp_mysql_connect"
(1801) error 017: undefined symbol "samp_mysql_connect"

sorry for duble post
Reply
#7

For the second time, what is the plugin a_sampmysql called on the SA-MP forums?
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=7106 here is the link... If I got your question right!
Reply
#9

Okay, try to "reinstall" the plugin.
If it doesn't work, then use the best MYSQL plugin: https://sampforum.blast.hk/showthread.php?tid=56564
Reply
#10

Quote:

error 010: invalid function or declaration
error 017: undefined symbol "samp_mysql_connect"
error 017: undefined symbol "samp_mysql_select_db"
error 017: undefined symbol "samp_mysql_ping"
error 017: undefined symbol "samp_mysql_connect"
error 017: undefined symbol "samp_mysql_select_db"
error 017: undefined symbol "samp_mysql_ping"
error 017: undefined symbol "samp_mysql_close"
error 017: undefined symbol "samp_mysql_ping"
error 017: undefined symbol "samp_mysql_ping"
error 017: undefined symbol "samp_mysql_query"
error 017: undefined symbol "samp_mysql_query"
error 017: undefined symbol "samp_mysql_store_result"
error 017: undefined symbol "samp_mysql_fetch_row"
error 017: undefined symbol "samp_mysql_query"
error 017: undefined symbol "samp_mysql_query"
error 017: undefined symbol "samp_mysql_store_result"
error 017: undefined symbol "samp_mysql_fetch_row"
error 017: undefined symbol "samp_mysql_query"
error 017: undefined symbol "samp_mysql_query"
error 017: undefined symbol "samp_mysql_store_result"
error 017: undefined symbol "samp_mysql_fetch_row"
error 017: undefined symbol "samp_mysql_free_result"
error 017: undefined symbol "samp_mysql_query"
error 017: undefined symbol "samp_mysql_store_result"
error 017: undefined symbol "samp_mysql_fetch_row"

Now this errors if I use your gived plugin and inc...!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)