command /startdrophead [<text>] [<timespan>]:
executable by: console
trigger:
if arg 1 is "on":
broadcast "&7>> L'event DropHead a commencer ! Fin dans %arg 2% !"
set {drophead} to on
set {_delay} to arg 2 / 2
set {_timespan} to "%{_delay}% hours" parse as timespan
wait {_timespan}
if {drophead} is "on":
broadcast "&7>> L'event DropHead se termine dans %{_timespan} / 2%"
wait {_timespan}
if {drophead} is "on":
broadcast "&7>> L'event DropHead est &cFini !"
L'erreur c'est:
'2 /' is not a type
et
'"%{_delay}% hours" parse as timespan' in not an entity
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.
Question
sam57730
Bonjour, j'ai une erreur sur mon skript :
command /startdrophead [<text>] [<timespan>]: executable by: console trigger: if arg 1 is "on": broadcast "&7>> L'event DropHead a commencer ! Fin dans %arg 2% !" set {drophead} to on set {_delay} to arg 2 / 2 set {_timespan} to "%{_delay}% hours" parse as timespan wait {_timespan} if {drophead} is "on": broadcast "&7>> L'event DropHead se termine dans %{_timespan} / 2%" wait {_timespan} if {drophead} is "on": broadcast "&7>> L'event DropHead est &cFini !"L'erreur c'est:
et
1 réponse à cette question
Messages recommandés