Jump to content

Store static data in local XML or in SQL?


kajahun

Recommended Posts

1 hour ago, kajahun said:

Hey guys! My question is where should I store static data? For exaple list of achievements, or list of weapon config (damage, model etc). In a local XML file, or an uniqe sql table?

Thank you!

If you dont update the data you can store it in a script in a table serverside also if you rly want then you can use sql / xml  which way you know to use better.

weapon_data = {
	[1] = {--data1....}
	[2] = {--data2...}
} --- so on....

Also if you use a table dont use ,,local`` only the table variable like i wrote before.

Edited by FlorinSzasz
Link to comment

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