Is this a good way to store vehicles mods?
#5

Quote:
Originally Posted by Marricio
Посмотреть сообщение
Vince's method to store vehicle components is more of an example of how you should structure a SQL table to assign relations between tables and therefore, their content (rows).

There is nothing wrong with your code, I often save data that way. However, it will be much more difficult (or impossible) to query through a vehicle component list and process that data, that means you will have to do yourself in PAWN (in large systems this can be a problem).

If you're going to start your script with SQL, a much, much better practice would be what Vince explained! It is an excellent way to structure data and generally a good coding practice, you'll be able to handle data faster. It might look complex but once you get the hold of it it's going to be very easy.
Quote:
Originally Posted by [WSF]ThA_Devil
Посмотреть сообщение
I see nothing wrong with this method, except is is quite bad to overview if you want to manually set a mod. Personally I'd use sscanf and a custom delimiter, comma for example. But to be honest, if this works for you, go with it.
Okay, Thank You Sooo Much Guys!
Reply


Messages In This Thread
Is this a good way to store vehicles mods? - by DarkSkull - 17.04.2017, 12:48
Re: Is this a good way to store vehicles mods? - by DarkSkull - 19.04.2017, 15:58
Re: Is this a good way to store vehicles mods? - by Marricio - 19.04.2017, 16:08
Re: Is this a good way to store vehicles mods? - by [WSF]ThA_Devil - 19.04.2017, 16:08
Re: Is this a good way to store vehicles mods? - by DarkSkull - 19.04.2017, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)