20.07.2018, 06:01
Again, the ID in the database is meant to be used as a way to identify a vehicle to update/delete. Nothing more, nothing less. You should not care if there are 2 records like this:
as the array would have 2 only indexes:
Since index 0 is empty, you can set any default value so you can reset any index very easy.
I advise you with a better method, it is up to you what you will use. Especially consider the components in another table, it is bad design all-in-one.
pawn Код:
ID
----
1
2345
pawn Код:
CarData[1][carID] = 1;
CarData[2][carID] = 2345;
I advise you with a better method, it is up to you what you will use. Especially consider the components in another table, it is bad design all-in-one.