#Teddy's post in Ajutor comanda /factiuni was marked as the answer
Inlocuieste comanda cu asta, si-mi spui rezultatul.
CMD:factiuni(playerid, params[])
{
new members, tstring[550];
for(new xf = 0; xf < MAX_GROUPS; xf++)
{
if(strlen(groupVariables[xf][gGroupName]) >= 1 && strcmp(groupVariables[xf][gGroupName], "None", true))
{
new stringy2[256];
mysql_format(handle, stringy2, 256, "SELECT * FROM `playeraccounts` WHERE `playerGroup` = '%d'", xf);
new Cache: resultx = mysql_query (handle, stringy2);
members = cache_get_row_count();
cache_delete(resultx);
format(tstring, sizeof(tstring),"%s[%d/%d] %sn", tstring, members, groupVariables[xf][gSlots], groupVariables[xf][gGroupName]);
}
}
ShowPlayerDialog(playerid, 4500, DIALOG_STYLE_LIST,"Factiuni", tstring, "Select", "Cancel");
SelFaction[playerid] = 0;
return 1;
}