Aller au contenu
  • 0

Erreur


Question

Posté(e)

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:

 

'2 /' is not a type

et

'"%{_delay}% hours" parse as timespan' in not an entity

1 réponse à cette question

Messages recommandés

  • 0
Posté(e)
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

 

il falait faire

 

command /startdrophead [<text>] [<number>]:
   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" parsed 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 !"

×
×
  • 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.