[MySql - Help] How can I stop the A_I from missing numbers?
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
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.
The ID is so that i can do use /setveh [Orgid] in game...then it gets the Model ID, X,Y,Z and the ORgid to set the veh in tat position...

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.

And do you mean if i use the index thing it does that? because thats what i need it to do, but with primary key using A_I it doesnt do that.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)