HELP MYSQL R39-3
#1

I could help convert this code to MySQL R39-3 please thanks

Код:
format(string, sizeof(string), "SELECT * FROM server WHERE Server = '1'");
	mysql_query (string);
	mysql_store_result();

	if (mysql_num_rows() > 0)
	{
		new wdata[128];
		while (mysql_retrieve_row())
		{
			mysql_get_field("Gamemode",wdata);
			CURRENT_GAMEMODE = strval(wdata);
		}
	}
	else
	{
		printf("[MYSQL]: Could Not Retrieve Field - Shutting Down Server.");
		SendRconCommand("gmx");
	}
	mysql_free_result();
Reply
#2

help
Reply
#3

Open MYSQL R39-3's include file, you'll find all the functions there. You can take the right approach then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)