Null

Started by Striker, Jun 25, 2016, 01:15 PM

Previous topic - Next topic

Striker

Well i've been working with the Database since so long, but i'm still unaware, or unexplained of something.... Well I'm just not getting really understand...That if we are removing anything from the middle of the Database, like Props made my Outlaw, or Vehicle(Being Saved ) So why does in the server it says the Name of the LAST PROPERTY or  Vehicle  = [NULL], and the Property/Car before it being named it's Name like The Property which name is Malibu, get's the name of the Null, and the property before that such as Police Station get's the name of Malibu why this mess :| ?

DizzasTeR

Answered several times already, pickup ids start from 0 and rowids in database start from 1. If you got some sense you'll know the reason now.

Striker

Quote from: Doom_Kill3R on Jun 25, 2016, 01:45 PMAnswered several times already, pickup ids start from 0 and rowids in database start from 1. If you got some sense you'll know the reason now.
Man i know that :| That's not what i'm asking, for. I know the pickup id starts from 0, while rowid starts from 1! so i've to add another pickup in
the .nut file to solve it out, but that's not i'm asking for : [ I'm asking if we are gonna remove a row like their are 10 row ids i'm removing the 7th row id, so why is the 10th Pickup getting the name null, and the 9th pickup getting it's name : [ ? Consider this example of Pickup to Vehicles being stored in Database.

EK.IceFlake

Well you can remove the autoincrement and specify the pickups ID when registering it in the database