Jump to content

Buy Rank With Levels Script


Recommended Posts

Posted
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

Posted

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.

Posted
Debug it, see what "sValue" returns.
..

Nothing

You should do like this to see what it returns.

outputChatBox(sValue) 

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...