Wei Posted May 5, 2012 Posted May 5, 2012 When I use setElementData and I reconnect it is removed why ? same as setAccountData Diet with russian vodka, lose 3 days in one week !
TwiX! Posted May 5, 2012 Posted May 5, 2012 When I use setElementData and I reconnect it is removed why ? same as setAccountData show your code - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
X-SHADOW Posted May 5, 2012 Posted May 5, 2012 use my script and change lvl and exp with you have function onLogin (_,account) setElementData(source, "Level", getAccountData(account, "lvl") or "Level 0 !") setElementData(source, "EXP", getAccountData(account, "exp") or "0") end addEventHandler ("onPlayerLogin", root, onLogin) function onQuit() local account = getPlayerAccount(source) if not account then return end if not isGuestAccount(account) then setAccountData (account, "lvl", getElementData(source, "Level")) setAccountData (account, "exp", getElementData(source, "EXP")) end end addEventHandler ("onPlayerQuit", root, onQuit) My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Wei Posted May 5, 2012 Author Posted May 5, 2012 When I use setElementData and I reconnect it is removed why ? same as setAccountData show your code allready fix it. It wasn't anything wrong with a code. I've removed and install again server and now works. It wasn't working for any code! Diet with russian vodka, lose 3 days in one week !
TwiX! Posted May 5, 2012 Posted May 5, 2012 When I use setElementData and I reconnect it is removed why ? same as setAccountData show your code allready fix it. It wasn't anything wrong with a code. I've removed and install again server and now works. It wasn't working for any code! well it's good that you did it by yourself - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
Wei Posted May 5, 2012 Author Posted May 5, 2012 (edited) ~ Edited May 5, 2012 by Guest Diet with russian vodka, lose 3 days in one week !
Castillo Posted May 5, 2012 Posted May 5, 2012 I'm wondering why do you set the same data, that is just useless in my opinion . San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
X-SHADOW Posted May 5, 2012 Posted May 5, 2012 setElementData ( source, "Occupation", "Police Officer" ) My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
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