steadyfi Posted April 4, 2015 Share Posted April 4, 2015 Hello everybody, I am working on a project and I came across a problem: How can I store data of data ? It sounds like a tricky question, but it should be possible. What I want to use it for is a Weapon Magazine. I want to store how many bullets it has left. I need a Easy, Fast, Reliable and Flexible way to do this. This due to the fact that I need it Server-Side and Client-Side, to be able to implement it into Loot Spawing System and Inventory System. Also, if it is a table, try to simplify it please so I can understand it. Please let me know if you have any idea, and show me a representation of how the layout will work and look like. Have a great day ! Link to comment
FlyingSpoon Posted April 4, 2015 Share Posted April 4, 2015 If you know SQL or MySQL use that, Or if you hate that use these, setElementData getElementData setAccountData getAccountData Link to comment
ALw7sH Posted April 4, 2015 Share Posted April 4, 2015 since you want it client and server side you can use XML or elementdata Link to comment
FlyingSpoon Posted April 4, 2015 Share Posted April 4, 2015 Alw7sH what about a .db file That'll be SQLite correct? Link to comment
steadyfi Posted April 4, 2015 Author Share Posted April 4, 2015 If you know SQL or MySQL use that, Or if you hate that use these, setElementData getElementData setAccountData getAccountData I don't know how I could use it with elementData ... it only allows one value ! And I can't do it with SQL implementation as it is a very fast changing system, i already mentioned it is a inventory system and making it with SQL would be a total mess ! Any other idea ? Link to comment
steadyfi Posted April 4, 2015 Author Share Posted April 4, 2015 #SOLVED I can use JSON functions: toJSON - fromJSON & setElementData 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