#Scoreboard skript
1 messages · Page 1 of 1 (latest)
i dont know how to fix this
cannot use 'attacker' outside of a damage/death/destroy event 10 and 12
thats the error
sir
then use %player%?
then dont use attacker
just gotta read the error messages and you would have never had to ask
ðŸ˜
last i checked falling off a cliff and dying has no attacker
I like how the event is on death of a player, then he proceeds to check if it's a player
huh.
if there is no attacker there is no victim
send skript again
on join:
set {_online} to number of all players
while player is online:
set title of player's scoreboard to "&b&lKINGEI"
set line 14 of player's scoreboard to "&7&m "
set line 13 of player's scoreboard to " &b&lStats &7>"
set line 12 of player's scoreboard to ""
set line 11 of player's scoreboard to " &7Player > &b&l%player%"
set line 10 of player's scoreboard to ""
set line 9 of player's scoreboard to " &7Deaths > &b&l{playerdeath::%player%}"
set line 8 of player's scoreboard to ""
set line 7 of player's scoreboard to " &7Kills > &b&l{playerkills::%player%}"
set line 6 of player's scoreboard to ""
set line 5 of player's scoreboard to "&7Rank > %player's group%"
set line 4 of player's scoreboard to ""
set line 3 of player's scoreboard to " &7Online players &7> &b&l%{_online}%"
set line 2 of player's scoreboard to "&7&m "
set line 1 of player's scoreboard to ""
wait 1 second
variables:
{playerkills::%player%} = 0
{playerdeath::%player%} = 0
on death of player:
if victim is player:
add 1 to {playerkills::%player%}
on death of player:
add 1 to {playerdeath::%player%}
dude
what line did u change
did u even read the error
why did u change all of the lines
now the kills and deaths dont work at lines 10 and 12
on death of player:
add 1 to {playerkills::%attacker%}
add 1 to {playerdeath::%victim%}
in the image is just wrong you should not add everything to player
also the condition victim is player will always pass since using player in the death event is the same as victim so you are basically checking if victim is victim
working
{playerkills::%player’s uuid%}
That’d probably be better so if the player changes there name there stats don’t go away
