i don't see any problem here... but you have a problem to understand the samp...
let think this situation... you have a server that can store 10 vehicles...
This is how the list with vehicle look when the server start
Код:
1. none
2. none
3. none
4. none
5. none
6. none
7. none
8. none
9. none
10. none
You add a vehicle "Infernus" to server, he will receive the first value that is free
Код:
1. "Infernus"
2. none
3. none
4. none
5. none
6. none
7. none
8. none
9. none
10. none
You add a new vehicle "Banshee" to server, he will receive the first value that is free
Код:
1. "Infernus"
2. "Banshee"
3. none
4. none
5. none
6. none
7. none
8. none
9. none
10. none
You add a new vehicle "Hotknife" to server, he will receive the first value that is free
Код:
1. "Infernus"
2. "Banshee"
3. "Hotknife"
4. none
5. none
6. none
7. none
8. none
9. none
10. none
You add a new vehicle "Admiral" to server, he will receive the first value that is free
Код:
1. "Infernus"
2. "Banshee"
3. "Hotknife"
4. "Admiral"
5. none
6. none
7. none
8. none
9. none
10. none
Let say you want to delete a vehicle '2. "Banshee"' for example, you will get this
Код:
1. "Infernus"
2. none
3. "Hotknife"
4. "Admiral"
5. none
6. none
7. none
8. none
9. none
10. none
You add a new vehicle "Seasparrow" to server, he will receive the first value that is free (in this case will be 2)
Код:
1. "Infernus"
2. "Seasparrow"
3. "Hotknife"
4. "Admiral"
5. none
6. none
7. none
8. none
9. none
10. none
Let say you want to delete a vehicle 2. "Seasparrow" & '3. "Hotknife"' for example, you will get this
Код:
1. "Infernus"
2. none
3. none
4. "Admiral"
5. none
6. none
7. none
8. none
9. none
10. none
In this moment you save all the data for vehicle in you databse (1) & (4)... and restart the server
When the server start you will add the vehicles...
Add the first vehicle from database (1), id 1 looks good...
Код:
1. "Infernus"
2. none
3. none
4. none
5. none
6. none
7. none
8. none
9. none
10. none
Add the second vehicle from database (4)... in this moment he will recive the id 2 and not 4 (the first id free is taken, the samp will never put the same id before the restart)
Код:
1. "Infernus"
2. "Admiral"
3. none
4. none
5. none
6. none
7. none
8. none
9. none
10. none
I hope you got the point...