Hi there
I have a problem with this skript: https://pastebin.com/njG4btAu
The problem is that it doesn't show the TopKillers.
Only the message --TOP KILLS-- that is inserted in the options:
But why it doesn't works... i don't know i have tried all. And i can't understand it.
There are no errors at all.
Full code:
I have a problem with this skript: https://pastebin.com/njG4btAu
The problem is that it doesn't show the TopKillers.
Only the message --TOP KILLS-- that is inserted in the options:
But why it doesn't works... i don't know i have tried all. And i can't understand it.
There are no errors at all.
Full code:
code_language.skript:
options:
servernavn: &e&lCombo&c&lPVP #navn på scoreboard.
every 1 second:
loop all players:
wipe loop-player's sidebar
set name of sidebar of loop-player to " {@servernavn} "
set score " &b&l" in sidebar of loop-player to 10
set score " &a&lStats:" in sidebar of loop-player to 9
set score " &7Kills: &a%{kills.%loop-player%}%" in sidebar of loop-player to 8
set score " &7Dødsfald: &a%{deahts.%loop-player%}%" in sidebar of loop-player to 7
set score " &7KillStreak: &a%{ks.%loop-player%}%" in sidebar of loop-player to 6
set score " &7Penge: &a%loop-player's money%" in sidebar of loop-player to 5
set score "&b" in sidebar of loop-player to 4
set score " &a&lServeren:" in sidebar of loop-player to 3
set score " &7Online: &a%number of all players%" in sidebar of loop-player to 2
set score " &7Ping: &a%loop-player's ping%" in sidebar of loop-player to 1
set score " &a&l" in sidebar of loop-player to 0
variables:
{ks.%player%} = 0
{kills.%player%} = 0
{deahts.%player%} = 0
on death:
attacker is a player
add 1 to {kills.%attacker%}
add 1 to {ks.%attacker%}
add 1 to {deahts.%victim%}
on death of player:
set {ks.%player%} to 0
options:
top10: &c&l--TOP KILLS--
command /top10:
trigger:
loop {kills::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
wait 1 tick
send "{@top10}" to player
loop {_high.to.low.list::*}:
add 1 to {_result}
send "&f%loop-value%&7: &c%{kills::%loop-value%}% kills" to player
if {_result} is 10:
stop