Hadif Posted September 17, 2015 Share Posted September 17, 2015 How do I save player account in XML file? I just want to manage the player account easily. How do I start? Any examples? Any help will be appreciate, thank you. Link to comment
Dealman Posted September 17, 2015 Share Posted September 17, 2015 Just the username or what...? Look up the XML writing functions on the MTA Wiki, there's plenty of information on how to read and write using those functions. If you plan to store passwords as well, I suggest you do some research on password encryption. Storing password as plaintext is a terrible idea. Then you simply store the account username in the XML file once they register an account. You'll need to write your own register function. Link to comment
JR10 Posted September 17, 2015 Share Posted September 17, 2015 Don't use XML for an account system, that's very inefficient and will probably cause lag and eat so much CPU. Use SQL or the default accounts system. Link to comment
Hadif Posted September 17, 2015 Author Share Posted September 17, 2015 Just the username or what...? Look up the XML writing functions on the MTA Wiki, there's plenty of information on how to read and write using those functions.If you plan to store passwords as well, I suggest you do some research on password encryption. Storing password as plaintext is a terrible idea. Then you simply store the account username in the XML file once they register an account. You'll need to write your own register function. I'll try! Link to comment
Hadif Posted September 17, 2015 Author Share Posted September 17, 2015 Don't use XML for an account system, that's very inefficient and will probably cause lag and eat so much CPU. Use SQL or the default accounts system. Im really bad in SQL. Link to comment
JR10 Posted September 17, 2015 Share Posted September 17, 2015 And XML is really bad for any server. SQL is not that hard to learn. Check the tutorial in my signature. Link to comment
Hadif Posted September 17, 2015 Author Share Posted September 17, 2015 And XML is really bad for any server.SQL is not that hard to learn. Check the tutorial in my signature. Alright 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