SA-MP Forums Archive
clan problem - 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: clan problem (/showthread.php?tid=654727)



clan problem - enzulikeS - 04.06.2018

ok so i buy a new clan from shop and i try to invite a player into it
but, even if im the only one from the clan, it says the clan reached maximum members
what is wrong here?

dialog_shop https://pastebin.com/uvVMKYbr
cmd:cinvite https://pastebin.com/drA1wNzb


Re: clan problem - Mugala - 04.06.2018

GetClanMembers <-- type this function here, problem must be in.


Re: clan problem - enzulikeS - 04.06.2018

Код:
stock GetClanMembers(clanid)
{
	new string[256],
		members=0;
	format(string, sizeof(string), "SELECT * FROM `users` WHERE `Clan` = '%d'", clanid);
	new Cache: membresult = mysql_query(SQL, string);
	for(new i, j = cache_get_row_count (); i != j; ++i)
	{
		members++;
	}
	cache_delete(membresult);
	return members;
}



Re: clan problem - enzulikeS - 04.06.2018

can anyone help with this?