Sort array.HELP PLEASE!
#1

If I have a array: PlayerInfo[5];
And it like this:
Код:
PlayerInfo[0] = 0
PlayerInfo[1] = 0
PlayerInfo[2] = 0
PlayerInfo[3] = 4
PlayerInfo[4] = 5
I want to move all number 0 to last(number 0 maybe not only 3,even not.The above code is just one of the cases)
Anyway to do that?
It shuold be this...:
Код:
PlayerInfo[0] = 4
PlayerInfo[1] = 5
PlayerInfo[2] = 0
PlayerInfo[3] = 0
PlayerInfo[4] = 0
Reply
#2

md-sort

https://sampforum.blast.hk/showthread.php?tid=343172
https://raw.githubusercontent.com/os...er/md-sort.inc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)