Minotaur Posted June 26, 2014 Posted June 26, 2014 i want a script to save players scores when they quit i tryed a few scripts but not working .. anyone can help?
ViRuZGamiing Posted June 26, 2014 Posted June 26, 2014 "I want" immediately means Nope. No scripting requests, you can make it with; addEventHandler("onPlayerQuit", ....) getElementData and onPlayerJoin check for the data and set it back. addEventHandler("onPlayerJoin", ....) getElementData setElementData
Baseplate Posted June 26, 2014 Posted June 26, 2014 ViRuZ, he said "on quit", I don't think that element data do save on quit. Minotaur ignore him please, you've got many options to save score, either account data (setAccountData and getAccountData), XML, or SQL.
Karuzo Posted June 26, 2014 Posted June 26, 2014 No Viruz is right abxf. Just get the element data on player quit event and then you have to save it in a xml file , sql or account data as abxf said.
Minotaur Posted June 26, 2014 Author Posted June 26, 2014 I dont understand that things... if anyone can teach me the scripting ... i want to learn it but no ones teach me and the wiki is hard to me
MIKI785 Posted June 26, 2014 Posted June 26, 2014 If wiki is "hard" for you you can't script. You can't script properly without the wiki.
Minotaur Posted June 26, 2014 Author Posted June 26, 2014 addEventHandler("onPlayerQuit", saveScore) getElementData its good?
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