Solved scoreboard and time

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

Status
Not open for further replies.

Korean_skripter

New Member
May 8, 2020
5
0
0
19
every 1 seconds:
@loop all players:
@@if {scoreboard.%loop-player%} is true:
@@@wipe loop-player's sidebar
@@@set name of sidebar of loop-player to "&e[ test ] "
@@@set score "&8> &bTIME" in sidebar of loop-player to 2
@@@set score " - %time%" in sidebar of loop-player to 1

It's my skript.

There's no loop that matches 'loop-player to 1'
and this is an error

what's the matter? I already loop-player replace to loop-value, value, player. but it doesn't work.

(p.s. I'm sorry for my poor English ability. I'm Korean.)
 
i don't know why that's not working

Code:
every 1 second:
    loop all players:
        if {scoreboard.%loop-player} is true:
            wipe loop-player's sidebar
            set score "&8> &bTIME" in sidebar of loop-player to 2
            set score "- %time%" in sidebar of loop-player to 1

just try that
 
i don't know why that's not working

Code:
every 1 second:
    loop all players:
        if {scoreboard.%loop-player} is true:
            wipe loop-player's sidebar
            set score "&8> &bTIME" in sidebar of loop-player to 2
            set score "- %time%" in sidebar of loop-player to 1

just try that

It doesn't..
 
wtf

what are all the addons you have and what version are you working

and send a screenshot of the error
 
thats my error and I'm using GomSK | InvSK | MarSK | Skellett | SkQuery | skRayFall | skript-mirror | ultraSkarebirth | umbaska | wildskript on 1.12.2 with skript 2.2dev37
 

Attachments

  • 오류.PNG
    오류.PNG
    5 KB · Views: 191
every 1 seconds:
@loop all players:
@@if {scoreboard.%loop-player%} is true:
@@@wipe loop-player's sidebar
@@@set name of sidebar of loop-player to "&e[ test ] "
@@@set score "&8> &bTIME" in sidebar of loop-player to 2
@@@set score " - %time%" in sidebar of loop-player to 1

It's my skript.

There's no loop that matches 'loop-player to 1'
and this is an error

what's the matter? I already loop-player replace to loop-value, value, player. but it doesn't work.

(p.s. I'm sorry for my poor English ability. I'm Korean.)
I dont recommend you using "every a second" when you make scoreboards.
Try something like this:
code_language.skript:
on join:
    while player is online:
        wipe player's sidebar
        set name of sidebar of player to "&e[Test]"
        set score "&8> &bTime" in sidebar of player to 2
        set score " - %world's time%" in sidebar of player to 1
        wait a second
 
I dont recommend you using "every a second" when you make scoreboards.
Try something like this:
code_language.skript:
on join:
    while player is online:
        wipe player's sidebar
        set name of sidebar of player to "&e[Test]"
        set score "&8> &bTime" in sidebar of player to 2
        set score " - %world's time%" in sidebar of player to 1
        wait a second

OHHH It's working ! I appreciate your help ^_^
 
I dont recommend you using "every a second" when you make scoreboards.
Try something like this:
code_language.skript:
on join:
    while player is online:
        wipe player's sidebar
        set name of sidebar of player to "&e[Test]"
        set score "&8> &bTime" in sidebar of player to 2
        set score " - %world's time%" in sidebar of player to 1
        wait a second
That's the same. It's better to make scoreboards with ID, and update the line when you need (sorry for my english btw)
 
Status
Not open for further replies.