Errors in console

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

RoRo_Tv

Member
Jun 10, 2020
1
0
0
Hello, I have a problem, I created a command to remove the bossbar but when I run it, I have "A internal error occured while attempting to perform this command." In the console, I have this: https://pastebin.com/F4H1J1rU
Here is the code of my order:
Code:
command /timer [<number>]:
    trigger:
        set {_bar} to new bossbar
        set skellett title of bossbar {_bar} to "&5&lCompétences dans :&5 %arg-1% secondes"
        set color of bossbar {_bar} to BLUE #(BLUE/GREEN/PINK/PURPLE/RED/WHITE/YELLOW)
        set style of bossbar {_bar} to SEGMENTED_20 #(6/10/12/20)
        set {_denominator} to ( arg-1 ) * 20
        set {_numerator} to ( arg-1 ) * 20
        while {_numerator} >= 0:
            set {_seconds} to "%{_numerator} / 20%" parsed as integer
            set skellett title of bossbar {_bar} to "&5&lCompétences dans :&5 %{_seconds}% secondes"
            set skellett progress of bossbar {_bar} to {_numerator} / {_denominator}
            add player to bossbar {_bar}
            wait 1 tick
            remove 1 from {_numerator}
        if {_numerator} is 0:
            set skellett progress of bossbar {_bar} to {_numerator} / {_denominator}
            add player to bossbar {_bar}
            wait 3 tick
            skellett remove player from bossbar {_bar}
            stop
command /bossbarclear:
    trigger:
        skellett remove player from bossbar {_bar}

There is no error in it.
Skript addons: **SkrayFall, Skellett, SkQuery, Tuske** and skript version: 2.4.1
Thanks and sorry for my mistakes, I'am not English.
 
Are you sure this is a problem with the actual skript itself?
 
Status
Not open for further replies.