Scoreboard help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

BuqTheBuq

New Member
Apr 23, 2020
7
0
1
There are some reload errors in my code and I don't know how to fix them. Take a look at my code and the capture of the reload errors.


every 1 tick in world "FFA1":
loop all players:
wipe loop-player's sidebar
set name of sidebar of loop-player to "&6Damncraft - FFA"
set score "Kills: %{kills.%player%}%" in sidebar of loop-player to 4
set score "Deaths: %{deaths.%player%}%" in sidebar of loop-player to 3
set score "Streak: %{streak.%player%}%" in sidebar of loop-player to 2
set score "Top Streak: %{topstreak.%player%}%" in sidebar of loop-player to 1



on death:
player is in region "ffamap"
victim is a player
attacker is a player
add 1 to {kills.%attacker%}
add 1 to {deaths.%victim%}
add 1 to {streak.%attacker%}
set {streak.%victim%} to 0
if {streak.%attacker%} is greater than {topstreak.%attacker%}:
set {topstreak.%attacker%} to {streak.%attacker%}
on first join:
set {kills.%player%} to 0
set {deaths.%player%} to 0
set {streak.%player%} to 0
set {topstreak.%player%} to 0
on command "/ffa10101010101010":
make player execute command "/o0oscoreboardo0o123"

on command "/leave":
delete score "&6DamnCraft - FFA" in sidebar of player
 

Attachments

  • Capture5.PNG
    Capture5.PNG
    102.7 KB · Views: 233
I see the problem, took me a while to find out but for variables in every 1 tick, you have done {kills.%player%} instead of {kills.%loop-player%}
 
Status
Not open for further replies.