18.08.2015, 21:19
Yes, StaticMysqlId Is my AUTO_INCREMENT.
It seems to set, vehicleid 1 to vehicleid 2, while vehicleid 1 still remains in the server.
If i don't add +1 to vehicleids in savestaticvehicles, then it starts the id's off at 0.
This is the loop that saves the vehicles when the server restarts.
if i change the 0 to 1, then i get 2 number 1 vehicleid's
It seems to set, vehicleid 1 to vehicleid 2, while vehicleid 1 still remains in the server.
If i don't add +1 to vehicleids in savestaticvehicles, then it starts the id's off at 0.
This is the loop that saves the vehicles when the server restarts.
PHP код:
for(new v = 0; v < StaticVehicleRows; v++)
{
SaveStaticVehicles(v);
}