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


Messages In This Thread
HELP MYSQL R39-3 - by Sarti - 09.08.2017, 16:33
Re: HELP MYSQL R39-3 - by Sarti - 09.08.2017, 19:10
Re: HELP MYSQL R39-3 - by Paulice - 09.08.2017, 19:26

Forum Jump:


Users browsing this thread: 2 Guest(s)