SA-MP Forums Archive
Need help in Mysql - 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: Need help in Mysql (/showthread.php?tid=648195)



Need help in Mysql - Jokers98s - 17.01.2018

Код:
	new CQuery[100];
	format(CQuery, sizeof(CQuery), "SELECT * FROM `members` WHERE `Gangname` = '%s'", Gang);
	Result = mysql_tquery( gSQL, CQuery );
	new rows = cache_get_row_count(Result);
	Result = mysql_free_result();
	return rows;
Here i want to get the could of members of that gangname and need to free variable Result. Becos Result id an Global variable. Now got that mysql_free_result() undefined symbol


Re: Need help in Mysql - Jokers98s - 17.01.2018

Help me plz


Re: Need help in Mysql - Micko123 - 17.01.2018

https://sampforum.blast.hk/showthread.php?tid=272727


Re: Need help in Mysql - chneubeul - 18.01.2018

Hi,

you have to use :
cache_get_value_name(0, "Gangname", string);