Aller au contenu
  • 0

Whaaat ? Problème de GUI


Question

Posté(e)

Bonjour à tous,

 

J'ai déjà fait des skripts de GUI complèxes (du genre un gui de gadgets à débloquer avec de la money) mais je n'ai jamais eu ce problème:

 

Lorsque j'ouvre le GUI, tout fonctionne, je clique sur l'objet, cela fait appraître mon tapis mais si je veux changer la couleur (après avoir fait appraître n'importe quel tapis du GUI) RIEN NE FONCTIONNE !!!

Je suis obligé de désactiver le tapis pour que cela remarche...

 

Si je fais les commandes à partir du chat et non à partir du GUI, cela fonctionne si parfaitement bien que j'ai envie de détruire ce GUI xD

 

Mon bout de code:

 

on rightclick with locked chest:5:
   if name of tool of player is "&a&lMagic&f&lCarpet !":
       open chest with 6 row named "&a&lMagic&f&lCarpet !" to player
       wait 1 tick

       format slot 10 of player with glass named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc clear"]
       format slot 12 of player with locked chest:14 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc red"]
       format slot 14 of player with locked chest:1 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc orange"]
       format slot 16 of player with locked chest:4 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc yellow"]
       format slot 19 of player with locked chest:5 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc light green"]
       format slot 21 of player with locked chest:13 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc green"]
       format slot 23 of player with locked chest:9 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc cyan"]
       format slot 25 of player with locked chest:3 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc light blue"]
       format slot 28 of player with locked chest:11 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc blue"]
       format slot 30 of player with locked chest:12 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc brow"]
       format slot 32 of player with locked chest:10 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc purple"]
       format slot 34 of player with locked chest:2 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc magenta"]
       format slot 37 of player with locked chest:6 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc pink"]
       format slot 39 of player with locked chest:0 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc white"]
       format slot 41 of player with locked chest:8 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc light gray"]
       format slot 43 of player with locked chest:7 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc gray"]
       format slot 49 of player with locked chest:15 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc black"]

19 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Le systéme de menu GUI fonctionne avec cette extensions, c'est juste pour te demander.

 

Sinon je ne voit pas de probléme dans ton script, vérifie si les commandes que tu as assigné sont bien les bonnes.

  • 0
Posté(e)
Le systéme de menu GUI fonctionne avec cette extensions, c'est juste pour te demander.

 

Sinon je ne voit pas de probléme dans ton script, vérifie si les commandes que tu as assigné sont bien les bonnes.

 

Malheureusement oui car lorsque je rentre celles-ci à partir du chat cela fonctionne... Enfin bon, ça ne peut être de toute façon que ça :/

Merci à toi :)

  • 0
Posté(e)
@PheonBest ce n'est pas "6 row" dans ton code qu'il faut mettre "6 rows"

 

En effet, voici le code corigé:

on rightclick with locked chest:5:
   if name of tool of player is "&a&lMagic&f&lCarpet !":
       open chest with 6 rows named "&a&lMagic&f&lCarpet !" to player
       wait 1 tick

       format slot 10 of player with glass named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc clear"]
       format slot 12 of player with locked chest:14 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc red"]
       format slot 14 of player with locked chest:1 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc orange"]
       format slot 16 of player with locked chest:4 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc yellow"]
       format slot 19 of player with locked chest:5 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc light green"]
       format slot 21 of player with locked chest:13 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc green"]
       format slot 23 of player with locked chest:9 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc cyan"]
       format slot 25 of player with locked chest:3 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc light blue"]
       format slot 28 of player with locked chest:11 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc blue"]
       format slot 30 of player with locked chest:12 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc brow"]
       format slot 32 of player with locked chest:10 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc purple"]
       format slot 34 of player with locked chest:2 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc magenta"]
       format slot 37 of player with locked chest:6 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc pink"]
       format slot 39 of player with locked chest:0 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc white"]
       format slot 41 of player with locked chest:8 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc light gray"]
       format slot 43 of player with locked chest:7 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc gray"]
       format slot 49 of player with locked chest:15 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc black"]

  • 0
Posté(e)
En effet, voici le code corigé:

on rightclick with locked chest:5:
   if name of tool of player is "&a&lMagic&f&lCarpet !":
       open chest with 6 rows named "&a&lMagic&f&lCarpet !" to player
       wait 1 tick

       format slot 10 of player with glass named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc clear"]
       format slot 12 of player with locked chest:14 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc red"]
       format slot 14 of player with locked chest:1 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc orange"]
       format slot 16 of player with locked chest:4 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc yellow"]
       format slot 19 of player with locked chest:5 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc light green"]
       format slot 21 of player with locked chest:13 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc green"]
       format slot 23 of player with locked chest:9 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc cyan"]
       format slot 25 of player with locked chest:3 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc light blue"]
       format slot 28 of player with locked chest:11 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc blue"]
       format slot 30 of player with locked chest:12 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc brow"]
       format slot 32 of player with locked chest:10 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc purple"]
       format slot 34 of player with locked chest:2 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc magenta"]
       format slot 37 of player with locked chest:6 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc pink"]
       format slot 39 of player with locked chest:0 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc white"]
       format slot 41 of player with locked chest:8 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc light gray"]
       format slot 43 of player with locked chest:7 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc gray"]
       format slot 49 of player with locked chest:15 named "&a&lMagic&f&lCarpet !" to close then run [make player execute command "/mc black"]

 

Merci je fonce voir si ça vient de là le problème :D

quelqu'un sait comment utiliser le mot "là" parce que je sais plus trop ^^

  • 0
Posté(e)
WESH C'est moi qui a résolu le pb !

 

Merci de ne pas t’attribuer de mérite et évite les majuscule s'il te plait sa ne donne pas vraiment envie de lire.

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