SA-MP Forums Archive
HELP MYSQL R39-3 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP MYSQL R39-3 (/showthread.php?tid=638981)



HELP MYSQL R39-3 - Sarti - 09.08.2017

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();



Re: HELP MYSQL R39-3 - Sarti - 09.08.2017

help


Re: HELP MYSQL R39-3 - Paulice - 09.08.2017

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