My scoreboard doesn't update

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

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

Remppu_playz

New Member
Oct 15, 2021
6
0
1
25
Hi im working on a sell system. im working on Minecraft 1.20 and using SkBee, skript api, skrayfall and skript-guis.
But on my scoreboard when you gain money it doesnt update.
Code:
On join:
if {bal::%uuid of player%} is not set:
set {bal::%uuid of player%} to 100


every 1 ticks:
loop all players:
set title of loop-player's scoreboard to "&6BISNES"
set line 6 of loop-player's scoreboard to " "
set line 5 of loop-player's scoreboard to "&aRahatilanne: &6%{bal::%uuid of loop-player%}%€"


command /bal:
trigger:
send "%{bal::%uuid of player%}%" to player #There are no tabs those are in the skript but they are lagging
 
Last edited:

Attachments

  • Näyttökuva 2023-11-16 140903.png
    Näyttökuva 2023-11-16 140903.png
    20.2 KB · Views: 42
no it says cant understand this expression player's balance, cant understand this condition : 'player's balance is not set' and there is no loop that matches 'loop-player's balance
'
 
Heres some code for paying and balance ig

command /bal:
trigger:
send "&3You have {money::%player's uuid%.money}$"

command /pay [<offline player>] [<integer>]:
trigger:
set {money::%player's uuid%.money} to {money::%player's uuid%.money} - arg-2
set {money::%arg-1's uuid%.money} to {money::%arg-1's uuid%.money} + arg-2
send "&3You have received &a%arg-2%$ &3from %player%" to arg-1
send "&3You have sent &4%arg-2%$ &3to %arg-1%" to player