HerculePoirot Posted March 23, 2014 Share Posted March 23, 2014 (edited) If I use setElementData for a player, is that data saved when the player disconnects and can be used when that player rejoins? Edited March 23, 2014 by Guest Link to comment
Reggae Posted March 23, 2014 Share Posted March 23, 2014 (edited) User SetAccountData. Edited March 23, 2014 by Guest Link to comment
Driggero Posted March 23, 2014 Share Posted March 23, 2014 setElementData is lost when the player leaves (since the player element is removed). If you want to save the data for when they rejoin you need to use either a database, XML file, or setAccountData. You can't rely on setElementData to save anything for longer than the player remains connected to the server. 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