Wei Posted May 5, 2012 Share Posted May 5, 2012 When I use setElementData and I reconnect it is removed why ? same as setAccountData Link to comment
TwiX! Posted May 5, 2012 Share Posted May 5, 2012 When I use setElementData and I reconnect it is removed why ? same as setAccountData show your code Link to comment
X-SHADOW Posted May 5, 2012 Share 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) Link to comment
Wei Posted May 5, 2012 Author Share 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! Link to comment
TwiX! Posted May 5, 2012 Share 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 Link to comment
Wei Posted May 5, 2012 Author Share Posted May 5, 2012 (edited) ~ Edited May 5, 2012 by Guest Link to comment
Castillo Posted May 5, 2012 Share Posted May 5, 2012 I'm wondering why do you set the same data, that is just useless in my opinion . Link to comment
X-SHADOW Posted May 5, 2012 Share Posted May 5, 2012 setElementData ( source, "Occupation", "Police Officer" ) 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