Jump to content

Not working. no errors!


Darth1013

Recommended Posts

every 1 minute:
 broadcast "Type &c%{text}% &fin &dchat &ffor &a%{reward}%!"
 set {game} to 1
 set {done} to "false"
 wait 10 seconds
 if {done} is "false":
  set {game} to 0
  broadcast "No one was &dquick enough!"
every 1 tick:
 set {text} to random integer between 1000 and 9000
 set {reward} to random integer between 1000 and 3000


on chat:
 if {game} is 1:
  if message contains "%{text}%":
   broadcast "&d%player% &chas gotten &a%{reward}%!"
   add {reward} to player's balance
   set {game} to 0
   set {done} to true

Link to comment
Share on other sites

Your issue is probably your indentation. Make sure to use either 4 spaces or a tab for every new line after a " ".

Here is a fixed version:

every 1 minute:
    broadcast "Type &c%{text}% &fin &dchat &ffor &a%{reward}%!"
    set {game} to 1
    set {done} to "false"
    wait 10 seconds
    if {done} is "false":
         set {game} to 0
         broadcast "No one was &dquick enough!"
every 1 tick:
    set {text} to random integer between 1000 and 9000
    set {reward} to random integer between 1000 and 3000


on chat:
    if {game} is 1:
        if message contains "%{text}%":
              broadcast "&d%player% &chas gotten &a%{reward}%!"
              add {reward} to player's balance
              set {game} to 0
              set {done} to true

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...