28.11.2017, 15:22
So, the idea is, that a player can buy up to 3 vehicles of his choice. I've got a table vehicle, where all the bought vehicles are stored. 
Sorry for the big image, [SPOILER][/SPOILER] not working for me
.
I'm worried what will happen if, let's say, some player sells his car (ID 23) to dealership (not implemented, just a idea), and the code has to delete the vehicles row from database?
What will happen to all the other rows? If I had about 30, what happens when I delete the 23rd?
Will there be a missing ID in between 22nd and 24th row? I think that would cause problems.
I'm a new scripter to SA:MP, pawn, programming in general, so I have a hard time to figure this out.
And, sorry for my bad English
.

Sorry for the big image, [SPOILER][/SPOILER] not working for me

I'm worried what will happen if, let's say, some player sells his car (ID 23) to dealership (not implemented, just a idea), and the code has to delete the vehicles row from database?
What will happen to all the other rows? If I had about 30, what happens when I delete the 23rd?
Will there be a missing ID in between 22nd and 24th row? I think that would cause problems.
I'm a new scripter to SA:MP, pawn, programming in general, so I have a hard time to figure this out.
And, sorry for my bad English
