Help with sort please
#1

Can you sort territories in descending order?
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;
}

Reply


Messages In This Thread
Help with sort please - by Kraeror - 20.03.2017, 16:35
Re: Help with sort please - by Amit1998 - 20.03.2017, 23:23
Re: Help with sort please - by coool - 21.03.2017, 07:20
Re: Help with sort please - by Kraeror - 21.03.2017, 11:33

Forum Jump:


Users browsing this thread: 2 Guest(s)