SA-MP Forums Archive
Order by - 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: Order by (/showthread.php?tid=588886)



Order by - sjames - 13.09.2015

Hi,

I have some groups and they have points in an array Etc:

GroupInfo[1][gPoints] = 300;
GroupInfo[2][gPoints] = 850;
GroupInfo[3][gPoints] = 140;
GroupInfo[4][gPoints] = 565;

Now I want to order them starting from the biggest. I need this to make a leaderboard which shows the groups with most points. How to do it?


Re: Order by - Jefff - 13.09.2015

https://sampforum.blast.hk/showthread.php?tid=343172