MrDragonn Posté(e) le 11 janvier 2016 Posté(e) le 11 janvier 2016 Bonsoir, je créé un GUI, mais il ne marche pas ... voici mon code: on right click holding a clock: if name of tool of player contains "&3Menu&dPrincipal": open chest with 6 row named "&3Menu&dPrincipal" to player wait 3 ticks format slot 0 of player with light blue stained glass pane to be unstealable <encore des formats> format slot 20 of player with iron sword named "HardFight" to close then run [ make player execute command "/gui1 joingame"] format slot 21 of player with tnt named "Nation" to close then run [ make player execute command "/gui1 joingame"] format slot 22 of player with golden apple named "V.I.P HardLife" to close then run [ make player execute command "/gui1 joingame"] format slot 23 of player with crafting table named "Semi-RP" to close then run [ make player execute command "/gui1 joingame"] format slot 24 of player with iron bars named "Prison" to close then run [ make player execute command "/gui1 joingame"] format slot 26 of player with light blue stained glass pane to be unstealable <encore des formats> format slot 53 of player with light blue stained glass pane to be unstealable command /gui1 <text>: trigger: if arg 1 is "shopg": wait 2 ticks open chest with 6 rows named "&3Menu&dShop" to player wait 1 ticks format slot 0 of player with black stained glass pane to be unstealable <encore des formats> format slot 53 of player with black stained glass pane to be unstealable if arg 1 is "joingame": wait 2 ticks open chest with 3 rows named "&3Menu&dJoin" to player wait 1 ticks format slot 1 of player with light blue stained glass pane to be unstealable format slot 1 of player with light blue stained glass pane to be unstealable format slot 2 of player with light blue stained glass pane to be unstealable <encore des formats> format slot 27 of player with light blue stained glass pane to be unstealable if arg 1 is "Join": wait 2 ticks open chest with 3 rows named "&3Menu&dJoin" to player wait 1 ticks format slot 0 of player with light blue stained glass pane to be unstealable <encore des formats> format slot 37 of player with light blue stained glass pane to be unstealable format slot 38 of player with light blue stained glass pane to be unstealable J'ai deja test de retirer un tab devant les ifs... Merci de votre aide! Cordialement MrDragonn
DragonManiak Posté(e) le 11 janvier 2016 Posté(e) le 11 janvier 2016 Pour le /gui1 je crois que ta une tabulation en trop devant les if
MrDragonn Posté(e) le 11 janvier 2016 Auteur Posté(e) le 11 janvier 2016 J'ai deja test de retirer un tab devant les ifs...
MrDragonn Posté(e) le 11 janvier 2016 Auteur Posté(e) le 11 janvier 2016 Ah oui l'erreur c'est que ca ouvre le shop puis le truc de join puis l'autre truc de join...
TheInception003 Posté(e) le 11 janvier 2016 Posté(e) le 11 janvier 2016 Essaie en mettant un wait 1 tick avant également ? wait 1 tick open chest with 6 rows named wait 1 tick
MrDragonn Posté(e) le 11 janvier 2016 Auteur Posté(e) le 11 janvier 2016 if arg 1 is "joingame": wait 2 ticks open chest with 3 rows named "&3Menu&dJoin" to player wait 1 ticks :3
ZeTioZ Posté(e) le 15 janvier 2016 Posté(e) le 15 janvier 2016 La tabulation est mauvaise essaye ça on right click holding a clock: if name of tool of player contains "&3Menu&dPrincipal": open chest with 6 row named "&3Menu&dPrincipal" to player wait 3 ticks format slot 0 of player with light blue stained glass pane to be unstealable <encore des formats> format slot 20 of player with iron sword named "HardFight" to close then run [ make player execute command "/gui1 joingame"] format slot 21 of player with tnt named "Nation" to close then run [ make player execute command "/gui1 joingame"] format slot 22 of player with golden apple named "V.I.P HardLife" to close then run [ make player execute command "/gui1 joingame"] format slot 23 of player with crafting table named "Semi-RP" to close then run [ make player execute command "/gui1 joingame"] format slot 24 of player with iron bars named "Prison" to close then run [ make player execute command "/gui1 joingame"] format slot 26 of player with light blue stained glass pane to be unstealable <encore des formats> format slot 53 of player with light blue stained glass pane to be unstealable command /gui1 <text>: trigger: if arg 1 is "shopg": wait 2 ticks open chest with 6 rows named "&3Menu&dShop" to player wait 1 ticks format slot 0 of player with black stained glass pane to be unstealable <encore des formats> format slot 53 of player with black stained glass pane to be unstealable if arg 1 is "joingame": wait 2 ticks open chest with 3 rows named "&3Menu&dJoin" to player wait 1 ticks format slot 1 of player with light blue stained glass pane to be unstealable format slot 1 of player with light blue stained glass pane to be unstealable format slot 2 of player with light blue stained glass pane to be unstealable <encore des formats> format slot 27 of player with light blue stained glass pane to be unstealable if arg 1 is "Join": wait 2 ticks open chest with 3 rows named "&3Menu&dJoin" to player wait 1 ticks format slot 0 of player with light blue stained glass pane to be unstealable <encore des formats> format slot 37 of player with light blue stained glass pane to be unstealable format slot 38 of player with light blue stained glass pane to be unstealable
MrDragonn Posté(e) le 16 janvier 2016 Auteur Posté(e) le 16 janvier 2016 J'ai réglé le problemes d'une facon différente, c'est a dire que j'ai fais les command /gui, /gui1, /gui2 , ect. Merci de m'avoir rep, j'avais oublié cette conv, j'la passe en Résolu!
Messages recommandés