[SR]mR.EmiN Posted February 3, 2011 Share Posted February 3, 2011 i have xml record system i use pointsystem script i want level system i doesnt make pls help me look my code function getPlayerPoints (thePlayer) local Points = loadPlayerData (source,"points") if (Points <= 0 ) then setElementData(getLocalPlayer(), "Rank") "Level 1" elseif (Points <= 100 ) then setElementData(getLocalPlayer(), "Rank") "Level 2" elseif (Points <=250 ) then setElementData(getLocalPlayer(), "Rank") "Level 3" elseif (Points <= 500 ) then setElementData(getLocalPlayer(), "Rank") "Level 4" elseif (Points <= 1000 ) then setElementData(getLocalPlayer(), "Rank") "Level 5" elseif (Points <= 2500 ) then setElementData(getLocalPlayer(), "Rank") "Level 6" elseif (Points <= 5000 ) then setElementData(getLocalPlayer(), "Rank") "Level 7" elseif (Points <= 10000 ) then setElementData(getLocalPlayer(), "Rank") "Level 8" elseif (Points <= 50000 ) then setElementData(getLocalPlayer(), "Rank") "Level 9" elseif (Points <= 1000000 ) then setElementData(getLocalPlayer(), "Rank") "Level 10" end end İ know this client-side Link to comment
SDK Posted February 3, 2011 Share Posted February 3, 2011 Use /debugscript 3 to detect errors. I don't know what your code does, but the setElementData parts are wrong. Should be this way: setElementData(getLocalPlayer(), "Rank", "Level 10") 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