Feche1320 Posted December 28, 2010 Posted December 28, 2010 Okay, I have this: Ranking-- It should decrease the variable value, if that variable is 5, it should go to 4, but it gives me a warning, and the hole script doesn't load. This is what it says: '=' expected near '-' I also tried: Ranking = Ranking-1 But the same error.. Thanks
Aibo Posted December 28, 2010 Posted December 28, 2010 Lua doesn't support ++/-- operators, as i recall. Ranking = Ranking-1 this shouldn't give any errors, unless Ranking variable is nil or not a number.
Feche1320 Posted December 28, 2010 Author Posted December 28, 2010 Mhh.. but it doesn't, I have rankings like this: Ranking = 0
Feche1320 Posted December 28, 2010 Author Posted December 28, 2010 Oh lol, I coppied yours, and works!! Thanks!
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