MYSQL Vehicles
#4

Quote:
Originally Posted by Stev
Посмотреть сообщение
Did you add "AUTO_INCREMENT" to database?
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.

PHP код:
    for(new 0StaticVehicleRowsv++)
    {
        
SaveStaticVehicles(v);
    } 
if i change the 0 to 1, then i get 2 number 1 vehicleid's
Reply


Messages In This Thread
MYSQL Vehicles - by ihatetn931 - 17.08.2015, 21:14
Re: MYSQL Vehicles - by ihatetn931 - 18.08.2015, 21:06
Re: MYSQL Vehicles - by Stev - 18.08.2015, 21:09
Re: MYSQL Vehicles - by ihatetn931 - 18.08.2015, 21:19
Re: MYSQL Vehicles - by ihatetn931 - 20.08.2015, 16:31

Forum Jump:


Users browsing this thread: 2 Guest(s)