1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved [SELF SOLVED] Help with variables

Discussion in 'Skript' started by Leonardo_, Mar 19, 2021.

Thread Status:
Not open for further replies.
  1. Leonardo_

    Leonardo_ Member

    Joined:
    Sep 21, 2020
    Messages:
    18
    Likes Received:
    0
    Help me with this code, I don't know why it doesn't work.
    Code (Text):
    1. # SCRIPT 1
    2. command /add:
    3.     trigger:
    4.         add "%player%,%now%" to {italia.richieste.new::*}
    5.  
    Code (Text):
    1. # SCRIPT 2
    2. command /richieste <text>:
    3.     usage: {@prefix} &aSintassi: &f/richieste <nazione>
    4.     trigger:
    5.         if arg 1 is "italia":
    6.             set metadata tag "gui_richieste_italia" of player to chest inventory with 6 rows named "&2&l» &a&lRICHIESTE IN ATTESA..."
    7.             loop {italia.richieste.new::*}:
    8.                 set {_split::*} to loop-value split at ","
    9.                 set {_x} to -1
    10.                 add 1 to {_x}
    11.                 set {_l::*} to "&f%{_split::2}%", "", "&8((&7 Click sinistro per rifiutare &8))" and "&8(( &7Click destro per accettare &8))"
    12.                 set slot {_x} of metadata tag "gui_richieste_italia" of player to skull of {_split::1} with name "&e%{_split::1}%" with lore {_l::*}
    13.             open (metadata tag "gui_richieste_italia" of player) to player


    I don't know why when I do "/richieste italia" the GUI remains empty.
    --- Double Post Merged, Mar 20, 2021, Original Post Date: Mar 19, 2021 ---
    up!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...