23.12.2013, 15:59
even i can do that, u have sorted the array variable 'a' .. ok thats done.. i want to allocate the playerid for which a[x] belongs to which playerid...
in above example, sorted a[1] = 8 which it belongs to the playerid '9' ... can u understand?
Quote:
Sorted: 0 -> ID: 7 Sorted: 8 -> ID: 9 Sorted: 9 -> ID: 4 Sorted: 11 -> ID: 3 Sorted: 21 -> ID: 5 Sorted: 47 -> ID: 8 Sorted: 58 -> ID: 6 Sorted: 67 -> ID: 1 Sorted: 90 -> ID: 2 Sorted: 99 -> ID: 0 |