20.03.2017, 16:35
(
Last edited by Kraeror; 20/03/2017 at 06:44 PM.
)
Can you sort territories in descending order?
Here is the code:
Here is the code:
Quote:
if(strcmp(cmd, "/territories", true) == 0) { new TerritoryString[2560]; for(new gangs=0; gangs < MAX_TEAMS; gangs++) { format(TerritoryString, sizeof(TerritoryString), "%s%s owns %d territories.\n",TerritoryString,TeamInfo[gangs][TeamName],TeamInfo[gangs][TerritoriesWon]); } ShowPlayerDialog(playerid,384,DIALOG_STYLE_MSGBOX, "Territories:", TerritoryString, "OK", ""); return 1; } |