Jump to content

Help with custom functions


Nissandrifter

Recommended Posts

I made these for use in my skin selection screen but they dont work properly. I cant see anything wrong so can someone please help me

  
function getNextSkin( player ) 
   repeat 
      ID = ID + 1 
   until (ID > 6) and (ID ~=  and (ID ~= 42) and (ID ~= 65) and (ID ~= 74) and (ID ~= 86) and (ID ~= 119) and (ID ~= 149) and (ID ~= 208) and (ID < 265) 
   setPlayerSkin (player, ID ) 
end 
  
function getPreviousSkin( player ) 
   repeat 
      ID = ID - 1 
   until (ID > 6) and (ID ~=  and (ID ~= 42) and (ID ~= 65) and (ID ~= 74) and (ID ~= 86) and (ID ~= 119) and (ID ~= 149) and (ID ~= 208) and (ID < 265) 
   setPlayerSkin (player, ID ) 
end 

Link to comment

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...