Hadif Posted September 17, 2015 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. My ingame nickname is Vaulthuntr. Host a server? Join a server?
Dealman Posted September 17, 2015 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. If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
JR10 Posted September 17, 2015 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. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Hadif Posted September 17, 2015 Author 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! My ingame nickname is Vaulthuntr. Host a server? Join a server?
Hadif Posted September 17, 2015 Author 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. My ingame nickname is Vaulthuntr. Host a server? Join a server?
JR10 Posted September 17, 2015 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. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Hadif Posted September 17, 2015 Author 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 My ingame nickname is Vaulthuntr. Host a server? Join a server?
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