Castillo Posted May 26, 2010 Share Posted May 26, 2010 hi there, i have a weird problem with somthing, the code dosnt give any errors/warnings at debug script and dont works function setRanks( thePlayer ) local account = getAccountName( thePlayer ) if (account == Snake) then setElementData ( thePlayer, "Rank", "Owner" ) end end addEventHandler("onPlayerLogin", getRootElement(),setRanks) Link to comment
Castillo Posted May 26, 2010 Author Share Posted May 26, 2010 Wrong arguments. Wiki MOAR! can u tell me what i did wrong? Link to comment
karlis Posted May 26, 2010 Share Posted May 26, 2010 account is not variable what doesnt exist Link to comment
Castillo Posted May 26, 2010 Author Share Posted May 26, 2010 Ok thanks now is working 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