1. 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 comminuty!

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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

scoreboard problem

Discussion in 'Skript' started by GK_Nico, Jan 17, 2019.

Thread Status:
Not open for further replies.
  1. GK_Nico

    GK_Nico Member

    Joined:
    Jan 6, 2019
    Messages:
    31
    Likes Received:
    0
    Hello together

    I have a problem with my scoreboard when I give eg a user coins are the old and the new coins there as well as the rank updater is not could tell me who it can be?


    Ich habe ein Problem mit mein Scoreboard wenn ich zb ein user Coins gebe stehen die alten und die neuen Coins da genauso wie wie der Rang updater geht nicht könnte mir wer sagen woran es liegen könnet?

    here my script

    Code (Skript):
    1. options:
    2.     Header: &8« &6&lJust4Gaming.EU &8»
    3.     Line1: &0
    4.     Line2: &7Dein Rang
    5.     Line3: &8%{Score.%player%}%
    6.     Line55: &a
    7.     Line4: &7Deine&6 Coins&8 »
    8.     Line5: &3%{geld.%player%}%
    9.     Line66: &b
    10.     Line6: &7Kills &8/ &7Tode
    11.     Line7: &a%{kills.%player%}% &8/ &c%{deaths.%player%}%
    12.     Line77: &d
    13.     Line8: &7Spieler Online
    14.     Line9: &a%amount of players% &8&c%max players%
    15.  
    16. on join:
    17.     while player is online:
    18.         set name of sidebar of player to "{@Header}"
    19.         set score "{@Line1}"  in sidebar of player to 11
    20.         set score "{@Line2}" in sidebar of player to 10
    21.         set score "{@Line3}" in sidebar of player to 9
    22.         set score "{@Line55}" in sidebar of player to 8
    23.         set score "{@Line4}" in sidebar of player to 7
    24.         set score "{@Line5}" in sidebar of player to 6
    25.         set score "{@Line66}" in sidebar of player to 5
    26.         set score "{@Line6}" in sidebar of player to 4
    27.         set score "{@Line7}" in sidebar of player to 3
    28.         set score "{@Line77}" in sidebar of player to 2
    29.         set score "{@Line8}" in sidebar of player to 1
    30.         set score "{@Line9}" in sidebar of player to 0
    31.         wait 3 seconds
    32.  
    33. on join:
    34.     if player has permission "Score.Spieler":
    35.         set {Score.%player%} to "&7Spieler"
    36.  
    37.     if player has permission "Score.gott":
    38.         set {Score.%player%} to "&6&lG&e&lO&6&lT&e&lT"
    39.  
    40.     if player has permission "Score.legende":
    41.         set {Score.%player%} to "&2&lL&a&lE&2&lG&a&lE&2&lN&a&lD&2&lE"
    42.  
    43.     if player has permission "Score.champion":
    44.         set {Score.%player%} to "&9&lC&1&lH&9&lA&1&lM&9&lP&1&lI&9&lO&1&lN"
    45.  
    46.     if player has permission "Score.beast":
    47.         set {Score.%player%} to "&a&lB&2&lΣ&a&lAST"
    48.  
    49.     if player has permission "Score.extreme":
    50.         set {Score.%player%} to "&3&lE&b&lX&3&lT&b&lR&3&lE&b&lM&3&lE&"
    51.  
    52.     if player has permission "Score.execute":
    53.         set {Score.%player%} to "&4&lE&c&lX&2&lE&a&lC&6&lU&e&lT&d&lE"
    54.  
    55.     if player has permission "Score.eternal":
    56.         set {Score.%player%} to "&d&lET&5&lΣ&d&lRNAL"
    57.  
    58.     if player has permission "Score.legend":
    59.         set {Score.%player%} to "&e&lLEG&6&lΣ&e&lND"
    60.  
    61.     if player has permission "Score.phoenix":
    62.         set {Score.%player%} to "&c&lPHO&4&lΣ&c&lNIX"
    63.    
    64.     if player has permission "Score.hero":
    65.         set {Score.%player%} to "&d&lH&5&lΣ&d&lRO"
    66.    
    67.     if player has permission "Score.serenity":
    68.         set {Score.%player%} to "&e&lS&6&lΣ&e&lR&6&lΣ&e&lNITY"
    69.    
    70.     if player has permission "Score.overrated":
    71.         set {Score.%player%} to "&f&lOV&7&lΣ&f&lRRAT&7&lΣ&f&lD"
    72.    
    73.     if player has permission "Score.sup":
    74.         set {Score.%player%} to "&9&lSup"
    75.    
    76.     if player has permission "Score.Mod":
    77.         set {Score.%player%} to "&c&lMod"
    78.        
    79.     if player has permission "Score.dev":
    80.         set {Score.%player%} to "&b&lDev"
    81.        
    82.     if player has permission "Score.owner":
    83.         set {Score.%player%} to "&4&lOwner"


    Sorry for my english
    I am tired and broken like a dog
     
  2. Brok3nmind

    Brok3nmind Active Member

    Joined:
    Feb 3, 2017
    Messages:
    66
    Likes Received:
    1
    This should work

    Code (Skript):
    1. options:
    2.     Header: &8« &6&lJust4Gaming.EU &8»
    3.     Line1: &0
    4.     Line2: &7Dein Rang
    5.     Line3: &8%{Score.%player%}%
    6.     Line55: &a
    7.     Line4: &7Deine&6 Coins&8 »
    8.     Line5: &3%{geld.%player%}%
    9.     Line66: &b
    10.     Line6: &7Kills &8/ &7Tode
    11.     Line7: &a%{kills.%player%}% &8/ &c%{deaths.%player%}%
    12.     Line77: &d
    13.     Line8: &7Spieler Online
    14.     Line9: &a%amount of players% &8&c%max players%
    15.  
    16. on join:
    17.     wipe player's sidebar
    18.     set name of sidebar of player to "{@Header}"
    19.     set score "{@Line1}"  in sidebar of player to 11
    20.     set score "{@Line2}" in sidebar of player to 10
    21.     set score "{@Line3}" in sidebar of player to 9
    22.     set score "{@Line55}" in sidebar of player to 8
    23.     set score "{@Line4}" in sidebar of player to 7
    24.     set score "{@Line5}" in sidebar of player to 6
    25.     set score "{@Line66}" in sidebar of player to 5
    26.     set score "{@Line6}" in sidebar of player to 4
    27.     set score "{@Line7}" in sidebar of player to 3
    28.     set score "{@Line77}" in sidebar of player to 2
    29.     set score "{@Line8}" in sidebar of player to 1
    30.     set score "{@Line9}" in sidebar of player to 0
    31.     wait 3 seconds
    32.  
    33. on join:
    34.     if player has permission "Score.Spieler":
    35.         set {Score.%player%} to "&7Spieler"
    36.  
    37.     if player has permission "Score.gott":
    38.         set {Score.%player%} to "&6&lG&e&lO&6&lT&e&lT"
    39.  
    40.     if player has permission "Score.legende":
    41.         set {Score.%player%} to "&2&lL&a&lE&2&lG&a&lE&2&lN&a&lD&2&lE"
    42.  
    43.     if player has permission "Score.champion":
    44.         set {Score.%player%} to "&9&lC&1&lH&9&lA&1&lM&9&lP&1&lI&9&lO&1&lN"
    45.  
    46.     if player has permission "Score.beast":
    47.         set {Score.%player%} to "&a&lB&2&lΣ&a&lAST"
    48.  
    49.     if player has permission "Score.extreme":
    50.         set {Score.%player%} to "&3&lE&b&lX&3&lT&b&lR&3&lE&b&lM&3&lE&"
    51.  
    52.     if player has permission "Score.execute":
    53.         set {Score.%player%} to "&4&lE&c&lX&2&lE&a&lC&6&lU&e&lT&d&lE"
    54.  
    55.     if player has permission "Score.eternal":
    56.         set {Score.%player%} to "&d&lET&5&lΣ&d&lRNAL"
    57.  
    58.     if player has permission "Score.legend":
    59.         set {Score.%player%} to "&e&lLEG&6&lΣ&e&lND"
    60.  
    61.     if player has permission "Score.phoenix":
    62.         set {Score.%player%} to "&c&lPHO&4&lΣ&c&lNIX"
    63.  
    64.     if player has permission "Score.hero":
    65.         set {Score.%player%} to "&d&lH&5&lΣ&d&lRO"
    66.  
    67.     if player has permission "Score.serenity":
    68.         set {Score.%player%} to "&e&lS&6&lΣ&e&lR&6&lΣ&e&lNITY"
    69.  
    70.     if player has permission "Score.overrated":
    71.         set {Score.%player%} to "&f&lOV&7&lΣ&f&lRRAT&7&lΣ&f&lD"
    72.  
    73.     if player has permission "Score.sup":
    74.         set {Score.%player%} to "&9&lSup"
    75.  
    76.     if player has permission "Score.Mod":
    77.         set {Score.%player%} to "&c&lMod"
    78.      
    79.     if player has permission "Score.dev":
    80.         set {Score.%player%} to "&b&lDev"
    81.      
    82.     if player has permission "Score.owner":
    83.         set {Score.%player%} to "&4&lOwner"
     
  3. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    You forgot to wipe the sidebar on the on join event and I’d recommend you using skellett scoreboards.
     
  4. GK_Nico

    GK_Nico Member

    Joined:
    Jan 6, 2019
    Messages:
    31
    Likes Received:
    0
    where do you mostly delete that?
    --- Double Post Merged, Jan 17, 2019, Original Post Date: Jan 17, 2019 ---
    because I still have the problem synonymous what he wrote when I give coins, for example, it is like that and I do not know how I could fix it?

    https://prntscr.com/m8locx
     
  5. Brok3nmind

    Brok3nmind Active Member

    Joined:
    Feb 3, 2017
    Messages:
    66
    Likes Received:
    1
    Send us your money System code
     
  6. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    You can’t just update one single line with that usage of a scoreboard. Just use Skelett scoreboards. There even is one published: sinpleboard and it does not flicker.
     
  7. GK_Nico

    GK_Nico Member

    Joined:
    Jan 6, 2019
    Messages:
    31
    Likes Received:
    0
    @Brok3nmind

    Code (Skript):
    1. command /Coins [<text>]:
    2.     trigger:
    3.         send ""
    4.         send " &8» &7Deine Coins &8&2%{geld.%player%}%"
    5.         send ""
    6.  
    7. command /addcoins [<player>] [<number>]:
    8.     trigger:
    9.         if player has the permission "Owner.*":
    10.             arg 1 isn't set:
    11.                 message " &8» &7Benutze &c/addoins &8<&7Spieler&8> <&7Coins&8>"
    12.                 stop trigger
    13.             arg 2 isn't set:
    14.                 message " &8» &7Benutze &c/addCoins &8<&7Spieler&8> <&7Coins&8>"
    15.                 stop trigger
    16.             arg 1 is set:
    17.                 add arg 2 to {geld.%arg 1%}
    18.                 broadcast "%nl% &8» &7Der Spieler &c%arg 1% &7hat &c%arg 2% &7Coins bekommen."
    19.  
    20. command /setcoins [<player>] [<number>]:
    21.     trigger:
    22.         if player has the permission "Owner.*":
    23.             arg 1 isn't set:
    24.                 message "%nl% &8» &7Benutze &c/setCoins &8<&7Spieler&8> <&7Coins&8>%nl%"
    25.                 stop trigger
    26.             arg 2 isn't set:
    27.                 message "%nl% &8» &7Benutze &c/setCoins &8<&7Spieler&8> <&7Coins&8>%nl%"
    28.                 stop trigger
    29.             arg 1 is set:
    30.                 set {geld.%arg 1%} to arg 2
    31.                 broadcast "%nl% &8» &7Die Coins von &c%arg 1% &7wurden auf &c%arg 2% &7Coin/s gesetzt!%nl%"

    @Runakai1

    What do you mean, if you know, please send me the link
    --- Double Post Merged, Jan 20, 2019, Original Post Date: Jan 18, 2019 ---
    Can anyone help me here with the scoreboard?
     
  8. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    Code (Skript):
    1.  
    2.    
    3. on join:
    4.     while player is online:
    5.         wipe player's sidebar
    6.         set name of sidebar of player to "{@Header}"
    7.         set score "{@Line1}"  in sidebar of player to 11
    8.         set score "{@Line2}" in sidebar of player to 10
    9.         set score "{@Line3}" in sidebar of player to 9
    10.         set score "{@Line55}" in sidebar of player to 8
    11.         set score "{@Line4}" in sidebar of player to 7
    12.         set score "{@Line5}" in sidebar of player to 6
    13.         set score "{@Line66}" in sidebar of player to 5
    14.         set score "{@Line6}" in sidebar of player to 4
    15.         set score "{@Line7}" in sidebar of player to 3
    16.         set score "{@Line77}" in sidebar of player to 2
    17.         set score "{@Line8}" in sidebar of player to 1
    18.         set score "{@Line9}" in sidebar of player to 0
    19.         wait 1 second
     
  9. GK_Nico

    GK_Nico Member

    Joined:
    Jan 6, 2019
    Messages:
    31
    Likes Received:
    0
    Thank you but now I have the problem that the ranks are not updated
     
Thread Status:
Not open for further replies.

Share This Page

Loading...