Aller au contenu
  • 0

probleme skript kits


Question

Posté(e)

Bonjour,depuis 5 heures,j'ai un problème avec mon skript de kits. mon serveur est sous spigot 1.12.2, donc je suis sous mc 1.12.2 ma version de skript est 2.3.1 et j'ai skQuery 3.6.2-Lime en addon,je ne sais pas si c'est un problème d'addon ou si le problème viens du skript.                                                                              

Je laisse si joint le script erroné en vous remerciant d'avance de vos réponses:

 

command /gshop [<text>]:
	trigger:
		if arg 1 is "MS":
			make console execute command "/give %player% Spawner 1"
			make player execute command "/money pay Console 5000"
			message "&a&lVous avez acheter un mobSpawner ! Pour &9&l5000$ !"

			
command /payg <text>:
	trigger:
		if arg 1 is not set:
		message "&cVous devez mettre le nom du grade que vous voulez acheter"
		else if arg 1 is "Combattant":
		if player has permission "kit.Combattant":
		message "vous avez déja ce kit"
		else
		make player execute command "/money pay Console 50000"
		add "kit.Combattant" to player's permissions
		message "Vous avez obtenu le grade &7&lCombattant"
		else if arg 1 is "Enchanteur":
		if player has permission "kit.Enchanteur":
		message "vous avez déja ce kit"
		else
		make player execute command "/money pay Console 80000"
		add "kit.Enchanteur" to player's permissions
		message "Vous avez obtenu le grade &7&lEnchanteur"
		else if 
		if player has permission "kit.Collectionneur":
		message "vous avez déja ce kit"
		else
		make player execute command "/money pay Console 99000"
		add "kit.Collectionneur" to player's permissions
		message "Vous avez obtenu le grade &a&lCollectionneur"
		else if 
		if player has permission "kit.Dieu":
		message "vous avez déja ce kit"
		else
		make player execute command "/money pay Console 250000"
		add "kit.Dieu" to player's permissions
		message "Vous avez obtenu le grade &b&lDieu"
		else if
		if player has permission"kit.Demon":
		message "vous avez déja ce kit"
		else	
		make player execute command "/money pay Console 1000000"
		add "kit.Demon" to player's permissions
		message "Vous avez obtenu le grade &d&lDemon"

Les erreurs sont les suivantes:


[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 242: if arg 1 is not set:')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 244: else if arg 1 is "Combattant":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 245: if player has permission "kit.Combattant":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 251: else if arg 1 is "Enchanteur":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 252: if player has permission "kit.Enchanteur":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 259: if player has permission "kit.Collectionneur":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 266: if player has permission "kit.Dieu":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 273: if player has permission"kit.Demon":')
[10:15:59 WARN]: [Skript] 'quete.sk' is empty
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: format slot 1
 of player with mob spawner named "&9&lSpawner &a&l5000$" to run [make player ex
ecute command "/gshop MS"] (kits.sk, line 216: format slot 1 of player with mob
spawner named "&9&lSpawner &a&l5000$" to run [make player execute command "/gsho
p MS"]')
[10:16:01 ERROR]: [Skript] 'else if' has to be placed just after another 'if' or
 'else if' section (kits.sk, line 244: else if arg 1 is "Combattant":')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 247: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 249: add "kit.Combattant" to player's permissions')
[10:16:01 ERROR]: [Skript] 'else if' has to be placed just after another 'if' or
 'else if' section (kits.sk, line 251: else if arg 1 is "Enchanteur":')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 254: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 256: add "kit.Enchanteur" to player's permissions')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else if (kits
.sk, line 258: else if')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 261: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 263: add "kit.Collectionneur" to player's permissions')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else if (kits
.sk, line 265: else if')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 268: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 270: add "kit.Dieu" to player's permissions')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else if (kits
.sk, line 272: else if')
[10:16:01 ERROR]: [Skript] can't understand this condition: 'player has permissi
on"kit.Demon"' (kits.sk, line 273: if player has permission"kit.Demon":')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 275: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 277: add "kit.Demon" to player's permissions')

J’espère avoir une réponse rapidement

10 réponses à cette question

Messages recommandés

  • 0
Posté(e) (modifié)
Il y a 13 heures, antoineok a dit :

Bonjour,depuis 5 heures,j'ai un problème avec mon skript de kits. mon serveur est sous spigot 1.12.2, donc je suis sous mc 1.12.2 ma version de skript est 2.3.1 et j'ai skQuery 3.6.2-Lime en addon,je ne sais pas si c'est un problème d'addon ou si le problème viens du skript.                                                                              

Je laisse si joint le script en vous remerciant d'avance de vos réponses:


command /gkit [<text>]:
	trigger:
		if arg 1 is "Citadin":
			if player has permission "kit.citadin":
				make console execute command "/give %player% leather_helmet 1"
				make console execute command "/give %player% leather_chestplate 1"
				make console execute command "/give %player% leather_leggings 1"
				make console execute command "/give %player% leather_boots 1"
				make console execute command "/give %player% stone_sword 1 {ench:[{id:34,lvl:1}]}"
				make console execute command "/give %player% bread 8"
				make console execute command "/give %player% stone_pickaxe 1"
				make console execute command "/give %player% stone_spade 1"
				make console execute command "/give %player% stone_axe 1"
				message "&7Voila votre kit Citadin m'sieur !"
		if arg 1 is "Combattant":
			if player has permission "kit.Combattant":
				make console execute command "/give %player% iron_helmet 1"
				make console execute command "/give %player% iron_chestplate 1"
				make console execute command "/give %player% iron_leggings 1"
				make console execute command "/give %player% iron_boots 1"
				make console execute command "/give %player% iron_sword 1"
				make console execute command "/give %player% iron_pickaxe 1"
				make console execute command "/give %player% iron_axe 1"
				make console execute command "/give %player% iron_spade 1"
				make console execute command "/give %player% steak 16"
				make console execute command "/give %player% iron_ore 8"
				make console execute command "/give %player% gold_ore 4"
				message "&e&lVoila votre kit &8&l&nCombattant&r &e&lMonsieur."
		if arg 1 is "Enchanteur":
			if player has permission "kit.Enchanteur":
				make console execute command "/give %player% iron_helmet 1 {ench:[{id:0,lvl:2}]}"
				make console execute command "/give %player% iron_chestplate 1 {ench:[{id:0,lvl:2}]}"
				make console execute command "/give %player% iron_leggings 1 {ench:[{id:0,lvl:2}]}"
				make console execute command "/give %player% iron_boots 1 {ench:[{id:0,lvl:2}]}"
				make console execute command "/give %player% iron_sword 1 {ench:[{id:16,lvl:1}]}"
				make console execute command "/give %player% minecraft:iron_pickaxe 1 0 {ench:[{id:35,lvl:1},{id:32,lvl:2}]}"
				make console execute command "/give %player% minecraft:iron_axe 1 0 {ench:[{id:35,lvl:1},{id:32,lvl:2}]}"
				make console execute command "/give %player% minecraft:iron_spade 1 0 {ench:[{id:35,lvl:1},{id:32,lvl:2}]}"
				make console execute command "/give %player% steak 16"
				make console execute command "/give %player% iron_ore 12"
				make console execute command "/give %player% gold_ore 8"
				make console execute command "/give %player% 384 8"
				make console execute command "/give %player% 116 1"
				make console execute command "/give %player% wood 16"
				message "&e&lVoila votre kit &9&l&nEnchanteur&r &e&lMonsieur."
		if arg 1 is "Collectionneur":	
			if player has permission "kit.Collectionneur":
				make console execute command "/give %player% minecraft:iron_pickaxe 1 0 {ench:[{id:35,lvl:5},{id:32,lvl:5}]}"
				make console execute command "/give %player% diamond 32"
				make console execute command "/give %player% gold_ingot 64"
				make console execute command "/give %player% iron_ingot 64"
				make console execute command "/give %player% iron_ingot 64"
				make console execute command "/give %player% emerald 2"
				message "&a&lLe kit Collectionneur vous a été donné monsieur."
		if arg 1 is "Dieu":
			if player has permission "kit.Dieu":
				make console execute command "/give %player% minecraft:diamond_helmet 1 {ench:[{id:0,lvl:2}]}"
				make console execute command "/give %player% minecraft:diamond_chestplate 1 {ench:[{id:0,lvl:2}]}"
				make console execute command "/give %player% minecraft:diamond_leggings 1 {ench:[{id:0,lvl:2}]}"
				make console execute command "/give %player% minecraft:diamond_boots 1 {ench:[{id:0,lvl:2}]}"
				make console execute command "/give %player% diamond_sword 1 {ench:[{id:16,lvl:2}]}"
				make console execute command "/give %player% minecraft:diamond_pickaxe 1 0 {ench:[{id:35,lvl:4},{id:34,lvl:10},{id:32,lvl:6}]}"
				make console execute command "/give %player% minecraft:diamond_axe 1 0 {ench:[{id:35,lvl:4},{id:34,lvl:10},{id:32,lvl:6}]}"
				make console execute command "/give %player% steak 64"
				make console execute command "/give %player% golden_apple 16"
				message "&a&lVotre dieu vous a remercié en vous donnant cela !"
		if arg 1 is "Demon":
			if player has permission "kit.Demon":
				make console execute command "/give %player% minecraft:diamond_helmet 1 {ench:[{id:0,lvl:6}]}"
				make console execute command "/give %player% minecraft:diamond_chestplate 1 {ench:[{id:0,lvl:6}]}"
				make console execute command "/give %player% minecraft:diamond_leggings 1 {ench:[{id:0,lvl:6}]}"
				make console execute command "/give %player% minecraft:diamond_boots 1 {ench:[{id:0,lvl:6}]}"
				make console execute command "/give %player% diamond_sword 1 {ench:[{id:16,lvl:8}]}"
				make console execute command "/give %player% minecraft:diamond_pickaxe 1 0 {ench:[{id:35,lvl:6},{id:34,lvl:20},{id:32,lvl:7}]}"
				make console execute command "/give %player% minecraft:diamond_axe 1 0 {ench:[{id:35,lvl:6},{id:34,lvl:20},{id:32,lvl:7}]}"
				make console execute command "/give %player% steak 64"
				make console execute command "/give %player% golden_apple 32"
				make console execute command "/give %player% golden_apple:1 4"
				message "&d&lUn démon vous a donné cela !"
		if arg 1 is "Admin":
			if player has permission "kit.Admin":
				make console execute command "/give %player% minecraft:diamond_helmet 1 0 {Unbreakable:1,ench:[{id:0,lvl:9999},{id:5,lvl:9999},{id:17,lvl:9999}]}"
				make console execute command "/give %player% minecraft:diamond_chestplate 1 0 {Unbreakable:1,ench:[{id:0,lvl:9999},{id:17,lvl:9999}]}"
				make console execute command "/give %player% minecraft:diamond_leggings 1 0 {Unbreakable:1,ench:[{id:0,lvl:9999},{id:17,lvl:9999}]}"
				make console execute command "/give %player% minecraft:diamond_boots 1 0 {Unbreakable:1,ench:[{id:0,lvl:9999},{id:17,lvl:9999}]"
				make console execute command "/give %player% diamond_sword 1 0 {Unbreakable:1,ench:[{id:16,lvl:9999},{id:13,lvl:9999},{id:12,lvl:9999},{id:17,lvl:9999}]}"
				make console execute command "/give %player% minecraft:diamond_pickaxe 1 0 {Unbreakable:1,ench:[{id:35,lvl:9999},{id:34,lvl:9999},{id:32,lvl:9999},{id:17,lvl:9999}]}"
				make console execute command "/give %player% minecraft:diamond_axe 1 0 {Unbreakable:1,ench:[{id:35,lvl:9999},{id:34,lvl:9999},{id:32,lvl:9999},{id:17,lvl:9999}]}}"
				make console execute command "/effect %player% minecraft:haste 1000000 127"
				make console execute command "/effect %player% minecraft:regeneration 1000000 31"
				make console execute command "/effect %player% minecraft:resistance 1000000 4"
				make console execute command "/effect %player% minecraft:fire_resistance 1000000 0"
				make console execute command "/effect %player% minecraft:water_breathing 1000000 0"
				make console execute command "/effect %player% minecraft:night_vision 1000000 0"
				make console execute command "/effect %player% minecraft:luck 1000000 127"
				make console execute command "/effect %player% minecraft:slow_falling 1000000 0"
				message "&d&lLa Console vous a donné cela !"
					
					
command /kit:
	trigger:
		open chest with 2 rows named "&5&lKits" to player
		wait 1 tick
		format slot 0 of player with blue stained glass pane named " " to be unstealable
		format slot 1 of player with stone sword named "&6Kit Citadin" to close then run [make player execute command "/gkit Citadin"]
		format slot 2 of player with blue stained glass pane named " " to be unstealable
		if player has permission "kit.Combattant":
			format slot 3 of player with iron sword of sharpness 1 named "&7&lKit Combattant" to close then run [make player execute command "/gkit Combattant"]
		if player has permission "kit.Enchanteur":
			format slot 4 of player with blue stained glass pane named " " to be unstealable
			format slot 5 of player with iron sword of sharpness 1 named "&9&lKit Enchanteur" to close then run [make player execute command "/gkit Enchanteur"]
			format slot 6 of player with blue stained glass pane named " " to be unstealable
		if player has permission "kit.Collectionneur":
			format slot 7 of player with nether star of sharpness 10 named "&a&lKit Collectionneur" to close then run [make player execute command "/gkit Collectionneur"]
			format slot 8 of player with blue stained glass pane named " " to be unstealable
		if player has permission "kit.Dieu":
			format slot 9 of player with diamond sword of sharpness 2 named "&b&lKit Dieu" to close then run [make player execute command "/gkit Dieu"]
			format slot 10 of player with blue stained glass pane named " " to be unstealable
		if player has permission "kit.Demon":
			format slot 11 of player with diamond sword of sharpness 5 named "&d&lKit Démon" to close then run [make player execute command "/gkit Demon"]
		if player has permission "kit.Admin":
			format slot 11 of player with dragon egg named "&d&lKit &kAdmin" to close then run [make player execute command "/gkit Admin"]
			
command /kits:
	trigger:
		open chest with 2 rows named "&5&lKits" to player
		wait 1 tick
		format slot 0 of player with blue stained glass pane named " " to be unstealable
		format slot 1 of player with stone sword named "&6Kit Citadin" to close then run [make player execute command "/gkit Citadin"]
		format slot 2 of player with blue stained glass pane named " " to be unstealable
		if player has permission "kit.Combattant":
			format slot 3 of player with iron sword of sharpness 1 named "&7&lKit Combattant" to close then run [make player execute command "/gkit Combattant"]
		if player has permission "kit.Enchanteur":
			format slot 4 of player with blue stained glass pane named " " to be unstealable
			format slot 5 of player with iron sword of sharpness 1 named "&9&lKit Enchanteur" to close then run [make player execute command "/gkit Enchanteur"]
			format slot 6 of player with blue stained glass pane named " " to be unstealable
		if player has permission "kit.Collectionneur":
			format slot 7 of player with nether star of sharpness 10 named "&a&lKit Collectionneur" to close then run [make player execute command "/gkit Collectionneur"]
			format slot 8 of player with blue stained glass pane named " " to be unstealable
		if player has permission "kit.Dieu":
			format slot 9 of player with diamond sword of sharpness 2 named "&b&lKit Dieu" to close then run [make player execute command "/gkit Dieu"]
			format slot 10 of player with blue stained glass pane named " " to be unstealable
		if player has permission "kit.Demon":
			format slot 11 of player with diamond sword of sharpness 5 named "&d&lKit Démon" to close then run [make player execute command "/gkit Demon"]
		if player has permission "kit.Admin":
			format slot 11 of player with dragon egg named "&d&lKit &kAdmin" to close then run [make player execute command "/gkit Admin"]

on break of Cobblestone:
	make console execute command "/eco give %player% 65"
	message "&6&l>  >  &7&l65$ Reçu !  &6&l<  <"
	
on break of coal ore:
	make console execute command "/eco give %player% 100"
	message "&6&l>  > &7&l100$ Reçu !  &6&l<  <"

on break of iron ore:
	make console execute command "/eco give %player% 120"
	message "&6&l>  >  &7&l120$ Reçus !  &6&l<  <"

on break of gold ore:
	make console execute command "/eco give %player% 160"
	message "&6&l>  >  &7&l160$ Reçus !  &6&l<  <"

on break of emerald ore:
	make console execute command "/eco give %player% 260"
	message "&6&l>  >  &7&l260$ Reçus !  &6&l<  <"

on break of diamond ore:	
	make console execute command "/eco give %player% 200"
	message "&6&l>  >  &7&l200$ Reçus !  &6&l<  <"

on break of obsidian:
	make console execute command "/eco give %player% 180"
	message "&6&l>  >  &7&l180$ Reçus ! &6&l <  <"

options:
	bc: &9- &eVente &9- &f

command /vente [<text>]:
	trigger:
		if arg 1 is not set:
			message "&cVous devez mettre le message de vente !Sans mettre le : [VENTE] il se fera &f&nAutomatiquement&r &c!"
		if arg 1 is set:
			broadcast "{@bc} %arg 1%"
			message "&cVotre annonce à été publiée !"

command /grades:
	trigger:
		open chest with 1 rows named "&9&lGrades" to player
		wait 1 tick
		format slot 0 of player with iron sword named "&7&lCombattant &50 000$" to close then run [make player execute command "/payg Combattant"]
		format slot 1 of player with iron sword of sharpness 1 named "&9&lEnchanteur &580 000$" to close then run [make player execute command "/payg Enchanteur"]
		format slot 2 of player with nether star of sharpness 10 named "&a&lCollectionneur &599 000$" to close then run [make player execute command "/payg Collectionneur"]
		format slot 3 of player with diamond sword of sharpness 2 named "&b&lGrade Dieu &5&l250 000$" to close then run [make player execute command "/payg Dieu"]
		format slot 4 of player with diamond sword of sharpness 8 named "&d&lGrade Démon &5&l1.000.000$" to close then run [make player execute command "/payg Démon"]


options:
	bc: &7&l- &e&lEvent
	
command /event [<text>]:
	trigger:
		broadcast "{@bc} &c&l%arg 1% &7&l-"

on join:
	set join message to "&9&l%player% &a&lS'est connecté !"

on quit:
	set quit message to "&9&L%player% &c&ls'est déconnecté !"

command /shop:
	trigger:
		open chest with 1 rows named "&9&lSpawners" to player
		wait 1 tick
		format slot 0 of player with blue stained glass pane named " " to be unstealable
		format slot 1 of player with mob spawner named "&9&lSpawner &a&l5000$" to run [make player execute command "/gshop MS"]
	
command /gshop [<text>]:
	trigger:
		if arg 1 is "MS":
			make console execute command "/give %player% Spawner 1"
			make player execute command "/money pay Console 5000"
			message "&a&lVous avez acheter un mobSpawner ! Pour &9&l5000$ !"

			
options:
	bc: &d&l-[ &7&lB&e&lA&7&lN&e&lK &d&l]-
			
every 20 seconds:
	make console execute command "/paye"
	broadcast "{@bc} &6&lVotre paye est arrivée !"

command /paye:
	trigger:
		make console execute command "/eco give %player% 200"
	
options:
	bc: &d&l-[ &7&lB&e&lA&7&lN&e&lK &d&l]- &6&l

command /payg <text>:
	trigger:
		if arg 1 is not set:
		message "&cVous devez mettre le nom du grade que vous voulez acheter"
		else if arg 1 is "Combattant":
		if player has permission "kit.Combattant":
		message "vous avez déja ce kit"
		else
		make player execute command "/money pay Console 50000"
		add "kit.Combattant" to player's permissions
		message "Vous avez obtenu le grade &7&lCombattant"
		else if arg 1 is "Enchanteur":
		if player has permission "kit.Enchanteur":
		message "vous avez déja ce kit"
		else
		make player execute command "/money pay Console 80000"
		add "kit.Enchanteur" to player's permissions
		message "Vous avez obtenu le grade &7&lEnchanteur"
		else if 
		if player has permission "kit.Collectionneur":
		message "vous avez déja ce kit"
		else
		make player execute command "/money pay Console 99000"
		add "kit.Collectionneur" to player's permissions
		message "Vous avez obtenu le grade &a&lCollectionneur"
		else if 
		if player has permission "kit.Dieu":
		message "vous avez déja ce kit"
		else
		make player execute command "/money pay Console 250000"
		add "kit.Dieu" to player's permissions
		message "Vous avez obtenu le grade &b&lDieu"
		else if
		if player has permission"kit.Demon":
		message "vous avez déja ce kit"
		else	
		make player execute command "/money pay Console 1000000"
		add "kit.Demon" to player's permissions
		message "Vous avez obtenu le grade &d&lDemon"

Les erreurs sont les suivantes:


[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 242: if arg 1 is not set:')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 244: else if arg 1 is "Combattant":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 245: if player has permission "kit.Combattant":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 251: else if arg 1 is "Enchanteur":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 252: if player has permission "kit.Enchanteur":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 259: if player has permission "kit.Collectionneur":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 266: if player has permission "kit.Dieu":')
[10:15:59 WARN]: [Skript] Empty configuration section! You might want to indent
one or more of the subsequent lines to make them belong to this section or remov
e the colon at the end of the line if you don't want this line to start a sectio
n. (kits.sk, line 273: if player has permission"kit.Demon":')
[10:15:59 WARN]: [Skript] 'quete.sk' is empty
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: format slot 1
 of player with mob spawner named "&9&lSpawner &a&l5000$" to run [make player ex
ecute command "/gshop MS"] (kits.sk, line 216: format slot 1 of player with mob
spawner named "&9&lSpawner &a&l5000$" to run [make player execute command "/gsho
p MS"]')
[10:16:01 ERROR]: [Skript] 'else if' has to be placed just after another 'if' or
 'else if' section (kits.sk, line 244: else if arg 1 is "Combattant":')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 247: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 249: add "kit.Combattant" to player's permissions')
[10:16:01 ERROR]: [Skript] 'else if' has to be placed just after another 'if' or
 'else if' section (kits.sk, line 251: else if arg 1 is "Enchanteur":')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 254: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 256: add "kit.Enchanteur" to player's permissions')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else if (kits
.sk, line 258: else if')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 261: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 263: add "kit.Collectionneur" to player's permissions')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else if (kits
.sk, line 265: else if')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 268: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 270: add "kit.Dieu" to player's permissions')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else if (kits
.sk, line 272: else if')
[10:16:01 ERROR]: [Skript] can't understand this condition: 'player has permissi
on"kit.Demon"' (kits.sk, line 273: if player has permission"kit.Demon":')
[10:16:01 ERROR]: [Skript] Can't understand this condition/effect: else (kits.sk
, line 275: else')
[10:16:01 ERROR]: [Skript] permissions  of the player can't have anything added
to it (kits.sk, line 277: add "kit.Demon" to player's permissions')

J’espère avoir une réponse rapidement

Je me suicide,

 

Faut pas mettre de /give %player% met give to player xxxxx, c'est pas opti là ?

/give %player% minecraft:ton_objet[/CODE] faut être vraiment idiot pour faire ce genre de chose, tu pourrais simplement give sans commande, xD ton serveur va se suicider après ça 

Modifié par TheRemiDev
Add Spoilers
  • 0
Posté(e) (modifié)

ok,mais ça résous pas le problème,j'aimerai juste que le script fonctionne,je m'occuperais de l'opti après

il y a une heure, _Torched_ a dit :

 

Je me suicide,

 

Faut pas mettre de /give %player% met give to player xxxxx, c'est pas opti là ?


/give %player% minecraft:ton_objet[/CODE] faut être vraiment idiot pour faire ce genre de chose, tu pourrais simplement give sans commande, xD ton serveur va se suicider après ça 
Modifié par antoineok
  • 0
Posté(e) (modifié)

Nous voulons bien t'aider mais on a besoin de savoir quel est ton problème ? fais /sk reload <tonskript> et envoie nous un screen des erreurs stp

Modifié par TheFighter51
  • 0
Posté(e)
command /gshop [<text>]:
    trigger:
        if arg 1 is "MS":
            make console execute command "/give %player% Spawner 1"
            make player execute command "/money pay Console 5000"
            message "&a&lVous avez acheter un mobSpawner ! Pour &9&l5000$ !"

            
command /payg <text>:
    trigger:
        if arg 1 is not set:
            message "&cVous devez mettre le nom du grade que vous voulez acheter"
        else if arg 1 is "Combattant":
                if player has permission "kit.Combattant":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 50000"
                add "kit.Combattant" to player's permissions
                message "Vous avez obtenu le grade &7&lCombattant"
        else if arg 1 is "Enchanteur":
            if player has permission "kit.Enchanteur":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 80000"
                add "kit.Enchanteur" to player's permissions
                message "Vous avez obtenu le grade &7&lEnchanteur"
        else if arg 1 is "Collectionneur":
            if player has permission "kit.Collectionneur":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 99000"
                add "kit.Collectionneur" to player's permissions
                message "Vous avez obtenu le grade &a&lCollectionneur"
        else if arg 1 is "Dieu":
            if player has permission "kit.Dieu":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 250000"
                add "kit.Dieu" to player's permissions
                message "Vous avez obtenu le grade &b&lDieu"
        
        else if arg 1 is "Demon":
            if player has permission"kit.Demon":
                message "vous avez déja ce kit"
            else:    
                make player execute command "/money pay Console 1000000"
                add "kit.Demon" to player's permissions
                message "Vous avez obtenu le grade &d&lDemon"

Essaie ça, je l'ai pas testé

  • 0
Posté(e)
Il y a 13 heures, MrKyh12 a dit :

command /gshop [<text>]:
    trigger:
        if arg 1 is "MS":
            make console execute command "/give %player% Spawner 1"
            make player execute command "/money pay Console 5000"
            message "&a&lVous avez acheter un mobSpawner ! Pour &9&l5000$ !"

            
command /payg <text>:
    trigger:
        if arg 1 is not set:
            message "&cVous devez mettre le nom du grade que vous voulez acheter"
        else if arg 1 is "Combattant":
                if player has permission "kit.Combattant":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 50000"
                add "kit.Combattant" to player's permissions
                message "Vous avez obtenu le grade &7&lCombattant"
        else if arg 1 is "Enchanteur":
            if player has permission "kit.Enchanteur":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 80000"
                add "kit.Enchanteur" to player's permissions
                message "Vous avez obtenu le grade &7&lEnchanteur"
        else if arg 1 is "Collectionneur":
            if player has permission "kit.Collectionneur":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 99000"
                add "kit.Collectionneur" to player's permissions
                message "Vous avez obtenu le grade &a&lCollectionneur"
        else if arg 1 is "Dieu":
            if player has permission "kit.Dieu":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 250000"
                add "kit.Dieu" to player's permissions
                message "Vous avez obtenu le grade &b&lDieu"
        
        else if arg 1 is "Demon":
            if player has permission"kit.Demon":
                message "vous avez déja ce kit"
            else:    
                make player execute command "/money pay Console 1000000"
                add "kit.Demon" to player's permissions
                message "Vous avez obtenu le grade &d&lDemon"

Essaie ça, je l'ai pas testé

Merci,les erreur qui reste maintenant sont juste les erreur de perm,et quelques erreur de tabs

  • 0
Posté(e) (modifié)

les erreur restantes sont:

[08:54:43 ERROR]: permissions  of the player can't have anything added to it (ki
ts.sk, line 18: add "kit.Combattant" to player's permissions')
[08:54:43 ERROR]: permissions  of the player can't have anything added to it (ki
ts.sk, line 25: add "kit.Enchanteur" to player's permissions')
[08:54:43 ERROR]: permissions  of the player can't have anything added to it (ki
ts.sk, line 32: add "kit.Collectionneur" to player's permissions')
[08:54:43 ERROR]: permissions  of the player can't have anything added to it (ki
ts.sk, line 39: add "kit.Dieu" to player's permissions')
[08:54:43 ERROR]: can't understand this condition: 'player has permission"kit.De
mon"' (kits.sk, line 43: if player has permission"kit.Demon":')

le code qui ne marche pas est:

command /payg <text>:
    trigger:
        if arg 1 is not set:
            message "&cVous devez mettre le nom du grade que vous voulez acheter"
        else if arg 1 is "Combattant":
            if player has permission "kit.Combattant":
				message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 50000"
                add "kit.Combattant" to player's permissions
                message "Vous avez obtenu le grade &7&lCombattant"
        else if arg 1 is "Enchanteur":
            if player has permission "kit.Enchanteur":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 80000"
                add "kit.Enchanteur" to player's permissions
                message "Vous avez obtenu le grade &7&lEnchanteur"
        else if arg 1 is "Collectionneur":
            if player has permission "kit.Collectionneur":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 99000"
                add "kit.Collectionneur" to player's permissions
                message "Vous avez obtenu le grade &a&lCollectionneur"
        else if arg 1 is "Dieu":
            if player has permission "kit.Dieu":
                message "vous avez déja ce kit"
            else:
                make player execute command "/money pay Console 250000"
                add "kit.Dieu" to player's permissions
                message "Vous avez obtenu le grade &b&lDieu"
        
        else if arg 1 is "Demon":
            if player has permission"kit.Demon":
                message "vous avez déja ce kit"
            else:    
                make player execute command "/money pay Console 1000000"
                add "kit.Demon" to player's permissions
                message "Vous avez obtenu le grade &d&lDemon"

 

 

 

------

EDIT:

PROBLEME RESOLU,j'ai abandonné l'idée de faire avec les perm donc j'ai fais avec les {},je laisse le code corrigé ici pour ceux que ça intéresse:

 

kits.sk

Modifié par antoineok
  • 0
Posté(e)
il y a 12 minutes, Mathitux a dit :

Bonjour,

Merci de faire attention aux doubles posts!

Ensuite n'oubliez pas de passer votre sujet en résolu si c'est le cas!

 

Bonne continuation.

comment on le passe en résolu?

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.