Aller au contenu
  • 0

Bug d'affichage d'item menu gui


Question

Posté(e)

Bonjour,

 

J'ai fait un menu gui en skript et quand je l'ouvre seulement un item s'affiche:

 

4ptQ.png

 

et quand je clique sur une case du menu gui, tous les items s'affichent

 

MojhG.png

 

Comment faire pour que les items s'affichent directement ?

Voici mon code:

command /jeux:
  trigger:
    open chest with 6 row named "&6&lMenu Principal & Jeux" to player
    set {_fb} to text from "http://serveurminijeux.com/fb"
    replace all "}", "{", """", "online",  ":" and " " with "" in {_fb}
    set {_motd} to text from ""
    format slot 11 of player with brick block named "&6FreeBuild" with lore "&fVenez laisser libre cours à||&fvotre imagination seul ou||&fentre amis !||||&eDev: &bWarSid15||&eJoueurs: &b%{_fb}%||||&e► &aClique ici pour te rendre||&adevant le portail du serveur !" to close then run [make player execute command "/warp freebuild"]
    set {_box} to text from "http://serveurminijeux.com/box"
    replace all "}", "{", """", "online",  ":" and " " with "" in {_box}
    set {_motd} to text from ""
    format slot 12 of player with iron sword named "&6PvpBox" with lore "&fVenez combattre d'autres||&fjoueurs dans une arène fun||&fet des Kits épiques !||||&eDev: &bWarSid15||&eJoueurs: &b%{_box}%||||&e► &aClique ici pour te rendre||&adevant le portail du serveur !" to close then run [make player execute command "/warp pvpbox"]
    set {_rc} to text from "http://serveurminijeux.com/rc"
    replace all "}", "{", """", "online",  ":" and " " with "" in {_rc}
    set {_motd} to text from ""
    format slot 14 of player with white wool named "&6RushConquest" with lore "&f4 équipes de 4 s'affrontent||&fafin de tenir position au centre||&fde la map et de marquer des points.||&fLa première équipe à 30 points gagne !||||&eDev: &bWarSid15 & EnuTella||&eJoueurs: &b%{_rc}%||||&e► &7Serveur en développement" to close
    set {_uhc} to text from "http://serveurminijeux.com/uhc"
    replace all "}", "{", """", "online",  ":" and " " with "" in {_uhc}
    set {_motd} to text from ""
    format slot 15 of player with 322 named "&bUHC" with lore "&fÉvènement ! Horaire d'ouverture||&f  Sur TWITTER !||||&6Twitter: @TellaEnu" to close then run [make player execute command "/uhc"]
    format slot 18 of player with ghast tear named "&6&nSite Web" with lore "&ecommande: &b/site" to close then run [make player execute command "/site"]
    format slot 26 of player with 386 named "&6&nTeamSpeak" with lore "&ecommande: &b/ts" to close then run [make player execute command "/ts"]
    format slot 27 of player with cyan glass named "&0" to close
    format slot 28 of player with cyan glass named "&0" to close
    format slot 29 of player with cyan glass named "&0" to close
    format slot 30 of player with cyan glass named "&0" to close
    format slot 31 of player with cyan glass named "&0" to close
    format slot 32 of player with cyan glass named "&0" to close
    format slot 33 of player with cyan glass named "&0" to close
    format slot 34 of player with cyan glass named "&0" to close
    format slot 35 of player with cyan glass named "&0" to close
    format slot 45 of player with 355 named "&6&nSpawn" with lore "&ecommande: &b/spawn" to close then run [make player execute command "/spawn"]
    format slot 47 of player with emerald named "&6Faire un DON" with lore "&ecommande: &b/don" to close then run [make player execute command "/don"]
    if has permission "grade.joueurs":
      format slot 49 of player with player's skull named "&6%player%" with lore "&eGrade: &bJoueurs" to close
    if has permission "grade.modo":
      format slot 49 of player with player's skull named "&6%player%" with lore "&eGrade: &bModérateur" to close
    if has permission "grade.supermodo":
      format slot 49 of player with player's skull named "&6%player%" with lore "&eGrade: &bSuperModo" to close
    if has permission "grade.admin":
      format slot 49 of player with player's skull named "&6%player%" with lore "&eGrade: &bAdmin" to close
    format slot 51 of player with diamond named "&6Acheter des Tokens" with lore "&ecommande: &b/boutique" to close then run [make player execute command "/boutique"]
    format slot 53 of player with book named "&c[AIDE]" with lore "&7Vous possédez dors et déjà||&7des particules et des pets !" to close
    set {smj} to text from "http://serveurminijeux.com/smj"
    replace all "}", "{", """", "online",  ":" and " " with "" in {smj}
    set {_motd} to text from ""
    format slot 4 of player with wool named "&fServeur&bMiniJeux" with lore "&eRavi de te voir &b%player% !||&fSi tu as un problème, appelle le||&fStaff par la commande &6/(en cours)||||&eJoueurs: &b%{smj}%" to close

3 réponses à cette question

Messages recommandés

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.