Castillo Posted May 26, 2010 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) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
robhol Posted May 26, 2010 Posted May 26, 2010 Wrong arguments. Wiki MOAR! Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
Castillo Posted May 26, 2010 Author Posted May 26, 2010 Wrong arguments. Wiki MOAR! can u tell me what i did wrong? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
karlis Posted May 26, 2010 Posted May 26, 2010 account is not variable what doesnt exist [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
Castillo Posted May 26, 2010 Author Posted May 26, 2010 Ok thanks now is working San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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