GUI execute command %loop-value% bug

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

MeHow

Active Member
Feb 6, 2017
140
13
18
Lithuania
Hello guys, I am trying to fix this bug with GUI ,that then you click item it runs /join %loop-value% command
My code:

code_language.skript:
                        open chest with 1 rows named "&0&l➥ žemėlapio pasirinikimas" to player
                        set {_s} to 0
                        loop {arenos.lb::*}:   
                            if {lb.arena.online.%loop-value%} is set:
                                set {_ar} to loop-value
                                if {lb.arena.pl.%loop-value%} is not set:
                                    set {lb.arena.pl.%loop-value%} to 0
                                format slot {_s} of player with paper named "&8» &e&o%loop-value%" with lore "&eLaukiama: %{lb.arena.pl.%loop-value%}%/2" to close then run [make player execute command "/lbpvp join %{_ar}%"]   
                            else:
                                format slot {_s} of player with paper named "&8» &e&o%loop-value%" with lore "&eUžimta." to close   
                            add 1 to {_s}

Skript 2.2
Mc 1.8
Thanks
 
So what exactly is the bug? Is it the slot not executing the proper command? If that is so, that's a SkQuery bug and you will need to use TuSKe to fix this problem.

Anyways, you should be using TuSKe for the best GUI performance and code.
 
Status
Not open for further replies.