so i have this function:
the var i use for counting the kills is {kills::%player%}
how can i transform this function into a var that i can use as the number 1 player with most kills on featherboard?
[doublepost=1541408123,1541193531][/doublepost]If anyone could show me an example or something it would be much appreciated.
code_language.skript:
function sortLowestToHighest(indexes: strings, values: objects) :: strings:
set {_size} to size of {_values::*}
loop {_size} times:
loop {_size} - 1 times:
set {_value1} to {_values::%loop-number-2%}
set {_value2} to {_values::%loop-number-2 + 1%}
{_value1} is more than {_value2}
set {_index1} to {_indexes::%loop-number-2%}
set {_indexes::%loop-number-2%} to {_indexes::%loop-number-2 + 1%}
set {_values::%loop-number-2%} to {_value2}
set {_indexes::%loop-number-2 + 1%} to {_index1}
set {_values::%loop-number-2 + 1%} to {_value1}
remove 1 from {_size}
return {_indexes::*}
the var i use for counting the kills is {kills::%player%}
how can i transform this function into a var that i can use as the number 1 player with most kills on featherboard?
[doublepost=1541408123,1541193531][/doublepost]If anyone could show me an example or something it would be much appreciated.