30.08.2016, 07:46
Oh sorry all is working.
But now how i can sort, when i have array where is for example player scores, and other variable money, i want to sort by score, but also write how much that player have money.
Using sort by score i will get
But making with money it will look like:
But now how i can sort, when i have array where is for example player scores, and other variable money, i want to sort by score, but also write how much that player have money.
Code:
new Scorevariables[ 10 ]; new Moneyvarialbes[ 10 ]; Scorevariables[ 0 ] = 500; Moneyvarialbes[ 0 ] = 200000; Scorevariables[ 1 ] = 200; Moneyvarialbes[ 1] = 500; Scorevariables[ 2 ] = 2000; Moneyvarialbes[ 2 ] = 586000;
Code:
1 0 2
Code:
1 - 500 0 - 200000 2 - 586000