Solved [SELF SOLVED] Help with variables

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

Leonardo_

Member
Sep 21, 2020
18
0
1
24
Help me with this code, I don't know why it doesn't work.
Code:
# SCRIPT 1
command /add:
    trigger:
        add "%player%,%now%" to {italia.richieste.new::*}

Code:
# SCRIPT 2
command /richieste <text>:
    usage: {@prefix} &aSintassi: &f/richieste <nazione>
    trigger:
        if arg 1 is "italia":
            set metadata tag "gui_richieste_italia" of player to chest inventory with 6 rows named "&2&l» &a&lRICHIESTE IN ATTESA..."
            loop {italia.richieste.new::*}:
                set {_split::*} to loop-value split at ","
                set {_x} to -1
                add 1 to {_x}
                set {_l::*} to "&f%{_split::2}%", "", "&8((&7 Click sinistro per rifiutare &8))" and "&8(( &7Click destro per accettare &8))"
                set slot {_x} of metadata tag "gui_richieste_italia" of player to skull of {_split::1} with name "&e%{_split::1}%" with lore {_l::*}
            open (metadata tag "gui_richieste_italia" of player) to player



I don't know why when I do "/richieste italia" the GUI remains empty.
[doublepost=1616266695,1616183926][/doublepost]up!
 
Status
Not open for further replies.