19.04.2017, 16:59
Quote:
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. |