I am slightly confused as to which way is the best method for storing data so that if a player disconnects their data is saved. I have read about files, different types of SQL and PData for storing data. I tried using PData to store a table which resulted in a ton of errors, and I don't want to continue with my work until I can get a more experienced lua coder to tell me the best way to go about things, I don't want to code inefficiently. Also, what would the best way of storing a table value (inventory) which is connected to the player (e.g ply.Inv), so that it can be accessed server side and client side, I understand it won't magically update on both realms but how would the BEST way of keeping both sides up to date work? Thank you for your time.
If it's for one server only, I would say PData but if it is for a group of servers where you want the data to be constant on each you could use MySQL or a mixture of both MySQL and PData. I.e data is temporarily saved to PData then when the map changes/player disconnects from the server the data is pushed to the database then called from there when the user reconnects.
[QUOTE=JakeGriffin;43326681]If it's for one server only, I would say PData but if it is for a group of servers where you want the data to be constant on each you could use MySQL or a mixture of both MySQL and PData. I.e data is temporarily saved to PData then when the map changes/player disconnects from the server the data is pushed to the database then called from there when the user reconnects.[/QUOTE]
Thanks.
Sorry, you need to Log In to post a reply to this thread.