Jump to content

Help: Save Player Account in XML?


Hadif

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted
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!

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...