Feche1320 Posted December 28, 2010 Share 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 Link to comment
Aibo Posted December 28, 2010 Share 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. Link to comment
Feche1320 Posted December 28, 2010 Author Share Posted December 28, 2010 Mhh.. but it doesn't, I have rankings like this: Ranking = 0 Link to comment
Aibo Posted December 28, 2010 Share Posted December 28, 2010 maybe you have an error somewhere else. Link to comment
Feche1320 Posted December 28, 2010 Author Share Posted December 28, 2010 Oh lol, I coppied yours, and works!! Thanks! Link to comment
Aibo Posted December 28, 2010 Share Posted December 28, 2010 actually i've copied yours too Link to comment
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