#my skript leaderboard wont work

1 messages · Page 1 of 1 (latest)

river gorge
#
    set {_sortedList::*} to sorted indices of {killsL::*} in descending order
    set {_1} to 1st element of {_sortedList::*}
    set {_2} to 2nd element of {_sortedList::*}
    set {_3} to 3rd element of {_sortedList::*}
    set {_4} to 4th element of {_sortedList::*}
    set {_5} to 5th element of {_sortedList::*}
    set {_6} to 6th element of {_sortedList::*}
    set {_7} to 7th element of {_sortedList::*}
    set {_8} to 8th element of {_sortedList::*}
    set {_9} to 9th element of {_sortedList::*}
    set {_10} to 10th element of {_sortedList::*}
    execute console command "znpcs skin 99 %{_1}%"
    execute console command "znpcs skin 100 %{_2}%"
    execute console command "znpcs skin 101 %{_3}%"
    execute console command "dh line set test 1 1 &4&l1st %{_1}%"
    execute console command "dh line set test2 1 1 &4&l2nd %{_2}%"
    execute console command "dh line set test3 1 1 &4&l3rd %{_3}%"
    execute console command "dh line set test 2 2 &6With %{killsps::%{_1}%}% Kills💀"
    execute console command "dh line set test2 2 2 &4&l3rd %{_3}%"
    execute console command "dh line set test3 2 2 &4&l3rd %{_3}%"
    

it shows skins and stuff but wont do leaderboard stuff it needs to shot greatest to least i dont know how to define that so if some1 could help that would b awesome
rn when someone joins it put them at number 1 and the person who was orginaly in first in second and so on

tame wyvern
#

well, it might be because youre sorting the indices, not the values

#

also, loop 10 times: set {_element::%loop-iteration%} to (loop-iteration)th element of {_list::*}

river gorge
#

how

#

would i impliment that

tame wyvern
#

instead of setting the 10 local vars individually, you can use this

river gorge
#

oohhh

#

k

#

nvm

#

can u edit

#

skript

#

im confused

#

@tame wyvern

tame wyvern
#

im not going to do if for you, and theres no need to ping me

grim hemlock
#

well, it might be because youre sorting the indices, not the values

river gorge
#

huh

#

im so confused

#

sorry for ping

#

btw