12.10.2010, 06:03
Quote:
Or use array index to reference, rather that database id. What are you actually using the primary key for? A database primary key is a unique reference to an element within a database for the purposes of cross referencing. Anyway, even if you could fill in the gaps, if you only have 3 and delete number 2, you'll have a gap until you create a new one.
|
then i can use /delveh and it looks on the enum for "orgVeh[id][pId]" and delete that from the database (I use orgVeh[pTempID] to store the Vehicle ID ingame.. so then when i try to delete, i look through the enums and use..
if(GetVehicleID(veh) == orgVehp[i][pTempID])
Get me?
--
Quote:
Anyway, even if you could fill in the gaps, if you only have 3 and delete number 2, you'll have a gap until you create a new one. |