Bonjour !
Je post se sujet car quand je fais un GUI, le skript trouve des erreur de se type :
J'ai les addons suivant :
- ExtraSK
- RandomSKBeta
- SkExtras
- SkQuery 3
- SkQuery 4
- skRayFall-1.5.2
- skript2.2
- Umbaska
- WildSkript
Merci d'avance !
EDIT :
Voilà le code entier :
option:
nomdugui: chez baba
message: %player% vient d'acheter le kit %arg 1% pour la somme de {@prixdukit} $!!
prixdukit: 10000
command: /manuaddp %player% essentials.kits.minerais
command /BuyKits [<text>]:
trigger:
if arg 1 is not set:
wait 2 tick
open chest with 1 row named "{@nomdugui}" to player
format slot 0 of player with diamond sword named "Kit minerais " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits minerais"]
format slot 1 of player with diamond sword named "Kit explorateur " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits explorateur"]
format slot 2 of player with diamond sword named "Kit creeper " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits creeper"]
format slot 3 of player with diamond sword named "Kit alchimiste " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits alchimiste"]
format slot 4 of player with diamond sword named "Kit druide " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits druide"]
format slot 5 of player with diamond sword named "Kit construction " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits construction"]
format slot 6 of player with diamond sword named "Kit enchanteur " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits enchanteur"]
if arg 1 is "minerais" or "explorateur" or "creeper" or "alchimiste" or "druide" or "construction" or "enchanteur":
if player's balance >= {@prixdukit}:
make console execute command "/money take %player% {@prixdukit}"
send "Tu as perdu {@prixdukit}$"
make console execute command "{@command}"
message "Tu vient d'acheter le &6kit %arg 1%&r, il te reste %player's money%"
broadcast "{@message}"