Aller au contenu

Question

Posté(e) (modifié)

Version de Minecraft : 1.8.8
Version de Skript : 2.5.2

Addons utilisés: FunkySK, MundoSK, Skellett-Legacy, skLib, SkQuery-Lime, SkRayFall, SkUnity, SkUtilities, TuSke, Umbaska et WildSkript

Type du skript : Je demande simplement s'il y a un add-on pour ce qui est expliqué plus bas ou juste si c'est une erreur de codage.

Description du script :

Salutations à vous.
Je viens ici pour savoir c'est quoi le problème avec les 2 lignes ci-dessous. Voir s'il y a un add-on que j'ai oublié ou que mon code soit mal fait.

Voici les erreurs que je viens d'avoir: (loop-index)

make a gui slot {_slot} of {_p} with {hdv.item::%loop-index%} with lore "&7ID: &6%{_id}%||&7Prix: &6%{hdv.prix::%loop-index%}% &e&lCoins||&7Vendeur: &6%{hdv.name::%loop-index%}%||||&aClick pour retiré l'item" to close then run function remove({_p}, "%loop-index%")
 
&
 
make a gui slot {_slot} of {_p} with {hdv.item::%loop-index%} with lore "&7ID: &6%{_id}%||&7Prix: &6%{hdv.prix::%loop-index%}% &e&lCoins||&7Vendeur: &6%{hdv.name::%loop-index%}%" to close then run function buy({_p}, "%{hdv.name::%loop-index%}%""%loop-index%")

Merci de votre réponse d'avance !

Modifié par __STEED__

12 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Il y a 20 heures, __STEED__ a dit :

Même erreurs en changeant Index par Value...

T'as version de skript n'est pas faite pour la 1.8 je te conseille la 2.2dev25 ^^

  • 0
Posté(e)
Il y a 3 heures, niwood a dit :

T'as version de skript n'est pas faite pour la 1.8 je te conseille la 2.2dev25 ^^

Même chose. Changement de version du plugins, des add-ons, etc, rien.. toujours les 3 même erreurs.

  • 0
Posté(e)
Il y a 10 heures, __STEED__ a dit :

Même chose. Changement de version du plugins, des add-ons, etc, rien.. toujours les 3 même erreurs.

C'est bizarre je suis aussi en 1.8.8 et j'ai la version 2.2dev25 et moi les loop-value marche très bien 😕 t'as essayer de retirer tous t'es addons et laisse seulement skript ? as tu une erreur dans le tchat ou la console ?

  • 0
Posté(e)

Bah maintenant j'ai une autre erreur qui est apparue.. 

>menu
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! [Skript] Severe Error:
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[18:54:17 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[18:54:17 ERROR]: #!#! and check whether this error has already been reported.
[18:54:17 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[18:54:17 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[18:54:17 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[18:54:17 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Stack trace:
[18:54:17 ERROR]: #!#! java.lang.IllegalArgumentException: Title cannot be longer than 32 characters
[18:54:17 ERROR]: #!#!     at org.apache.commons.lang.Validate.isTrue(Validate.java:136)
[18:54:17 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventoryCustom$MinecraftInventory.<init>(CraftInventoryCustom.java:59)
[18:54:17 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventoryCustom.<init>(CraftInventoryCustom.java:32)
[18:54:17 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.createInventory(CraftServer.java:1525)
[18:54:17 ERROR]: #!#!     at org.bukkit.Bukkit.createInventory(Bukkit.java:938)
[18:54:17 ERROR]: #!#!     at com.w00tmast3r.skquery.elements.expressions.ExprBlankInventories.get(ExprBlankInventories.java:36)
[18:54:17 ERROR]: #!#!     at com.w00tmast3r.skquery.elements.expressions.ExprBlankInventories.get(ExprBlankInventories.java:14)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:105)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getSingle(SimpleExpression.java:63)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.effects.EffOpenInventory.execute(EffOpenInventory.java:98)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onServerCommand(Commands.java:181)
[18:54:17 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[18:54:17 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[18:54:17 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[18:54:17 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
[18:54:17 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[18:54:17 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[18:54:17 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[18:54:17 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[18:54:17 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:407)
[18:54:17 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375)
[18:54:17 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[18:54:17 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[18:54:17 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Version Information:
[18:54:17 ERROR]: #!#!   Skript: 2.2-dev25
[18:54:17 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[18:54:17 ERROR]: #!#!   Minecraft: 1.8.8
[18:54:17 ERROR]: #!#!   Java: 1.8.0_281 (Java HotSpot(TM) 64-Bit Server VM 25.281-b09)
[18:54:17 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Running CraftBukkit: false
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Current node: null
[18:54:17 ERROR]: #!#! Current item: open inventory to the player
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Thread: Server thread
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! End of Error.
[18:54:17 ERROR]: #!#!
[18:54:17 INFO]: An internal error occurred while attempting to perform this command.
[18:54:17 INFO]: Unknown command. Type "/help" for help.

 

  • 0
Posté(e)
Il y a 8 heures, __STEED__ a dit :

Bah maintenant j'ai une autre erreur qui est apparue.. 


>menu
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! [Skript] Severe Error:
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[18:54:17 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[18:54:17 ERROR]: #!#! and check whether this error has already been reported.
[18:54:17 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[18:54:17 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[18:54:17 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[18:54:17 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Stack trace:
[18:54:17 ERROR]: #!#! java.lang.IllegalArgumentException: Title cannot be longer than 32 characters
[18:54:17 ERROR]: #!#!     at org.apache.commons.lang.Validate.isTrue(Validate.java:136)
[18:54:17 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventoryCustom$MinecraftInventory.<init>(CraftInventoryCustom.java:59)
[18:54:17 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventoryCustom.<init>(CraftInventoryCustom.java:32)
[18:54:17 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.createInventory(CraftServer.java:1525)
[18:54:17 ERROR]: #!#!     at org.bukkit.Bukkit.createInventory(Bukkit.java:938)
[18:54:17 ERROR]: #!#!     at com.w00tmast3r.skquery.elements.expressions.ExprBlankInventories.get(ExprBlankInventories.java:36)
[18:54:17 ERROR]: #!#!     at com.w00tmast3r.skquery.elements.expressions.ExprBlankInventories.get(ExprBlankInventories.java:14)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:105)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getSingle(SimpleExpression.java:63)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.effects.EffOpenInventory.execute(EffOpenInventory.java:98)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
[18:54:17 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onServerCommand(Commands.java:181)
[18:54:17 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[18:54:17 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[18:54:17 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[18:54:17 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
[18:54:17 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[18:54:17 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[18:54:17 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[18:54:17 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[18:54:17 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:407)
[18:54:17 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375)
[18:54:17 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[18:54:17 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[18:54:17 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Version Information:
[18:54:17 ERROR]: #!#!   Skript: 2.2-dev25
[18:54:17 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[18:54:17 ERROR]: #!#!   Minecraft: 1.8.8
[18:54:17 ERROR]: #!#!   Java: 1.8.0_281 (Java HotSpot(TM) 64-Bit Server VM 25.281-b09)
[18:54:17 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Running CraftBukkit: false
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Current node: null
[18:54:17 ERROR]: #!#! Current item: open inventory to the player
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! Thread: Server thread
[18:54:17 ERROR]: #!#!
[18:54:17 ERROR]: #!#! End of Error.
[18:54:17 ERROR]: #!#!
[18:54:17 INFO]: An internal error occurred while attempting to perform this command.
[18:54:17 INFO]: Unknown command. Type "/help" for help.

 

Je crois que tu as un titre trop long 

java.lang.IllegalArgumentException: Title cannot be longer than 32 characters

Et ça dois être le nom d'un menu  mais bizarre que d'une version à une autre la limite apparait essaye de mettre un autre nom dans ton menu et tu devrais plus avoir cette erreur 

  • 0
Posté(e)
Le 10/05/2021 à 03:58, niwood a dit :

Je crois que tu as un titre trop long 


java.lang.IllegalArgumentException: Title cannot be longer than 32 characters

Et ça dois être le nom d'un menu  mais bizarre que d'une version à une autre la limite apparait essaye de mettre un autre nom dans ton menu et tu devrais plus avoir cette erreur 

Pour le /menu, effectivement le nom était trop long. Mais pour le /hdv, toujours les 3 même erreurs...

  • 0
Posté(e)
Le 12/05/2021 à 03:12, __STEED__ a dit :

Pour le /menu, effectivement le nom était trop long. Mais pour le /hdv, toujours les 3 même erreurs...

Tu peux me montrer ton code ou tu as ton loop stp ?

  • 0
Posté(e)
Il y a 3 heures, niwood a dit :

Tu peux me montrer ton code ou tu as ton loop stp ?

options:
	hdv: &d&l[HDV]&r
on script load:
	wait 3 ticks
	broadcast "&7&o&m====[&r &d&lHDV &7&o&m]====&r"
	broadcast "&7Dev: &6iReyZe"
	broadcast "&7Ver: &61.0"
	broadcast "&7Date: &629&7/&608&7/&617"
	broadcast "&7&o&m====[&r &d&lHDV &7&o&m]====&r"
function buy(p: player, p2: text, t: text):
	set {_uuid} to uuid of {_p}
	if {coins.%{_uuid}%} >= {hdv.prix::%{_t}%}:
		give {hdv.item::%{_t}%} to {_p}
		remove {hdv.prix::%{_t}%} from {coins.%{_uuid}%}
		set {_uuid2} to uuid of {hdv.name::%{_t}%}
		add {hdv.prix::%{_t}%} to {coins.%{_uuid2}%}
		message "{@hdv} vous avez acheter %{hdv.item::%{_t}%}% pour &6%{hdv.prix::%{_t}%}% &e&lCoins" to {_p}
		message "{@hdv} votre item a été vendu pour &6%{hdv.prix::%{_t}%}% &e&lCoins" to {hdv.name::%{_t}%}
		delete {hdv.name::%{_t}%}
		delete {hdv.item::%{_t}%}
		delete {hdv.prix::%{_t}%}
	else:
		message "{@hdv} vous n'avez pas assez de coins pour acheter cet item !" to {_p}
function venteperso(p: player):
	set {_slot} to 0
	set {_id} to 1
	open virtual chest inventory with size 6 named "&9» &d&lVOS VENTES" to {_p}
	# Blanc
	make a gui slot 36 of {_p} with stained glass pane:0 named " " to do nothing
	make a gui slot 38 of {_p} with stained glass pane:0 named " " to do nothing
	make a gui slot 40 of {_p} with stained glass pane:0 named " " to do nothing
	make a gui slot 42 of {_p} with stained glass pane:0 named " " to do nothing
	make a gui slot 44 of {_p} with stained glass pane:0 named " " to do nothing
	# Cyan
	make a gui slot 37 of {_p} with stained glass pane:9 named " " to do nothing
	make a gui slot 39 of {_p} with stained glass pane:9 named " " to do nothing
	make a gui slot 41 of {_p} with stained glass pane:9 named " " to do nothing
	make a gui slot 43 of {_p} with stained glass pane:9 named " " to do nothing
	make a gui slot 49 of {_p} with sunflower named "&eRefresh" to run function venteperso({_p})
	make a gui slot 48 of {_p} with paper named "&7Retour HDV" to run function guihdv({_p}, 0)
	loop {hdv.name::*}:
		if loop-value is "%{_p}%":
			make a gui slot {_slot} of {_p} with {hdv.item::%loop-value%} with lore "&7ID: &6%{_id}%||&7Prix: &6%{hdv.prix::%loop-value%}% &e&lCoins||&7Vendeur: &6%{hdv.name::%loop-value%}%||||&aClick pour retiré l'item" to close then run function remove({_p}, "%loop-value%")
			add 1 to {_slot}
			add 1 to {_id}
function remove(p: player, t: text):
	if {hdv.name::%{_t}%} is "%{_p}%":
		give {hdv.item::%{_t}%} to {_p}
		message "{@hdv} votre item a été retiré de la vente !" to {_p}
		delete {hdv.name::%{_t}%}
		delete {hdv.item::%{_t}%}
		delete {hdv.prix::%{_t}%}
	else:
		message "{@hdv} &cvous n'êtes pas propriétaire de cet item" to {_p}
function guihdv(p: player, page: number):
	set {_startpage} to {_page}*36
	set {_i} to 1
	set {_slot} to 0
	set {_id} to 1
	open virtual chest inventory with size 6 named "&9» &d&lHDV &a&l##%{_page}%" to {_p}
	# Blanc
	make a gui slot 36 of {_p} with stained glass pane:0 named " " to do nothing
	make a gui slot 38 of {_p} with stained glass pane:0 named " " to do nothing
	make a gui slot 40 of {_p} with stained glass pane:0 named " " to do nothing
	make a gui slot 42 of {_p} with stained glass pane:0 named " " to do nothing
	make a gui slot 44 of {_p} with stained glass pane:0 named " " to do nothing
	# Cyan
	make a gui slot 37 of {_p} with stained glass pane:9 named " " to do nothing
	make a gui slot 39 of {_p} with stained glass pane:9 named " " to do nothing
	make a gui slot 41 of {_p} with stained glass pane:9 named " " to do nothing
	make a gui slot 43 of {_p} with stained glass pane:9 named " " to do nothing
	if {_page} = 0:
		make a gui slot 48 of {_p} with paper named "&7<--" to do nothing
	else:
		make a gui slot 48 of {_p} with paper named "&7<--" to run function guihdv({_p}, ({_page} - 1))
	make a gui slot 49 of {_p} with sunflower named "&eRefresh" to run function guihdv({_p}, {_page})
	make a gui slot 50 of {_p} with paper named "&7-->" to run function guihdv({_p}, ({_page} + 1))
	make a gui slot 45 of {_p} with book named "&eVos ventes" to run function venteperso({_p})
	wait 1 ticks
	loop {hdv.item::*}:
		if loop-value parsed as a number > {_startpage}:
			if {hdv.name::%loop-value%} is "%{_p}%":
				make a gui slot {_slot} of {_p} with {hdv.item::%loop-value%} with lore "&7ID: &6%{_id}%||&7Prix: &6%{hdv.prix::%loop-value%}% &e&lCoins||&7Vendeur: &6%{hdv.name::%loop-value%}%||||&aClick pour retiré l'item" to close then run function remove({_p}, "%loop-value%")
				add 1 to {_slot}
				add 1 to {_id}
			else:
				make a gui slot {_slot} of {_p} with {hdv.item::%loop-value%} with lore "&7ID: &6%{_id}%||&7Prix: &6%{hdv.prix::%loop-value%}% &e&lCoins||&7Vendeur: &6%{hdv.name::%loop-value%}%" to close then run function buy({_p}, "%{hdv.name::%loop-value%}%", "%loop-value%")
				add 1 to {_slot}
				add 1 to {_id}
			if {_slot} = (36*{_i}):
				exit loop
command /sell [<text>] [<text>]:
	trigger:
		if arg 1 is set:
			if arg 1 is "create":
				if arg 2 is set:
					if arg 2 parsed as a number is a number:
						if tool of player is not air:
							add tool of player to {hdv.item::*}
							add arg 2 parsed as a number to {hdv.prix::*}
							add player to {hdv.name::*}
							wait 1 ticks
							remove tool of player from player's inventory
							message "{@hdv} item mit en vente !"
						else:
							message "{@hdv} &cvous devez avoir une item dans la main !"
					else:
						message "{@hdv} &7- &6/sell &7<&acreate&7> &7<&aprix&7>"
				else:
					message "{@hdv} &7- &6/sell &7<&acreate&7> &7<&aprix&7>"
		else:
			message "{@hdv} &7- &6/sell &7<&acreate&7> &7<&aprix&7>"
command /hdv:
	trigger:
		guihdv(player, 0)

 

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.