Darth1013 Posted October 2, 2021 Share Posted October 2, 2021 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 More sharing options...
belac136 Posted October 3, 2021 Share Posted October 3, 2021 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now