Number-Sort Function
#1

Hey,

Quote:
Originally Posted by Example
enum pvar
{
pNumber,
[..],
};
new var[10][pvar]

var[0][pNumber] = 823498;
var[1][pNumber] = 823500;
var[8][pNumber] = 823408;
var[3][pNumber] = 823506;
how i can sort the var, if Array isnt 0?

Quote:
Originally Posted by Like This
1. var[8][pNumber]
2. var[0][pNumber]
3. var[1][pNumber]
4. var[3][pNumber]
Reply
#2

http://forum.sa-mp.com/showthread.ph...rt#post1085586
Reply
#3

Quote:

new
array[] = { -541, 54, 689, 12, 3, 0, 3, 55, 66, -541, 5468484, -564, 1554, 1656 }
;
quickSort(array, 0, sizeof(array) - 1);

for(new i; i != sizeof(array); ++i)
{
printf("%d", array[i]);
}

How it works, if the array is like this

pVar[MAX_PLAYERS][pScore];
Reply
#4

Or something similar with quickSort:

http://forum.sa-mp.com/showpost.php?...postcount=1756
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)