Aller au contenu
  • 0

Pourquoi ça fonctionne pas ?


Question

Posté(e)

Bonjour,

 

Je vous demande de m'aider pour ce petit problème, voici un screen http://prntscr.com/94hurj

 

Le code

command /abcde:
   trigger:
       set {_nomdetavariable} to "%player's money%"
       replace all "dollars" and "." and "," with "" in {_nomdetavariable}
       set {_nomdetavariable} to "{_nomdetavariable}" parsed as integer
       send "%{_nomdetavariable}%"
       if {_nomdetavariable} = 0:
           send "coucou"
       if {_nomdetavariable} <= 20:
           broadcast "test"
       if {_nomdetavariable} >= 20:
           broadcast "test"

 

La rien ne fonctionne mais si je met

        if 3700300 is 3700300 :
           broadcast "test 2"

 

ça fonctionne, pourquoi ?

6 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Essaye ça je suis avec Essentials et ça marche

 

command /abcde:
   trigger:
       set {_nomdetavariable} to "%player's balance%"
       replace all "dollars" and "." and "," with "" in {_nomdetavariable}
       set {_nomdetavariable} to "{_nomdetavariable}" parsed as integer
       send "%{_nomdetavariable}%"
       if player's balance = 0:
           send "coucou"
       if player's balance <= 20:
           broadcast "test"
       if player's balance >= 20:
           broadcast "test"

  • J'aime 1
  • 0
Posté(e)
Essaye ça je suis avec Essentials et ça marche

 

command /abcde:
   trigger:
       set {_nomdetavariable} to "%player's balance%"
       replace all "dollars" and "." and "," with "" in {_nomdetavariable}
       set {_nomdetavariable} to "{_nomdetavariable}" parsed as integer
       send "%{_nomdetavariable}%"
       if player's balance = 0:
           send "coucou"
       if player's balance <= 20:
           broadcast "test"
       if player's balance >= 20:
           broadcast "test"

Niquel ça fonctionne !

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