27.05.2012, 21:28
The following command I have got an issue with.
It only shows one faction (The last faction on the list EG:
I have in my SQL
Red County Sheriffs Department
Red County Fire & Rescue
But it only shows Red County Fire & Rescue, not both.
Thanks!
pawn Код:
command(factions, playerid, params[])
{
new string[128];
for(new i = 0; i < MAX_FACTIONS; i++)
{
if(strlen(Factions[i][FactionName]) > 1)
{
format(string, sizeof(string), "%s\n", Factions[i][FactionName]);
}
}
ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_LIST, "Faction Member(s)", string, "OK", "");
return 1;
}
I have in my SQL
Red County Sheriffs Department
Red County Fire & Rescue
But it only shows Red County Fire & Rescue, not both.
Thanks!