#1ERuPTiON Posted June 24, 2014 Author Posted June 24, 2014 And what is the problem? You can't buy the rank, it's added into admin but when i click it , and when I'm the level it doesn't work .. It says "You are not the level" When i am .. I think there is problem with elementdata ... but there is no debug
LonelyRoad Posted June 25, 2014 Posted June 25, 2014 I would be inclined to agree with ^ What does sValue return if you outputChatBox or outputDebugString? I'd hazard a guess that your if statement on line 6 is not doing the correct comparison.
#1ERuPTiON Posted June 25, 2014 Author Posted June 25, 2014 Debug it, see what "sValue" returns. ..Nothing
#1ERuPTiON Posted June 25, 2014 Author Posted June 25, 2014 How'd you check what it's returning? post it. Debugscript 3
TAPL Posted June 25, 2014 Posted June 25, 2014 Debug it, see what "sValue" returns. ..Nothing You should do like this to see what it returns. outputChatBox(sValue)
TAPL Posted June 26, 2014 Posted June 26, 2014 I told him on skype to replace this: if ( sValue == "Level ".. Level ) then With this: if ( tonumber(string.sub(sValue, 6)) >= tonumber(Level) ) then And tried to explain to him what the problem, but he doesn't seem to understand maybe he still in stage where it hard to understand yet.
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