06.09.2012, 14:05
Well, my vehicle system saves vehicle files as %d.ini(1.ini,2.ini), the number showing actually the number of the BHOUGHT vehicles in the server.Also every of the bhought vehicles has a variable VehicleCounter, wich saves the respective number(the next number of the car that is about to be bhought, if, in total, your players bhought 15 vehicles, the index for the current vehicle would be 16, therefor the VehicleCounter[vehicleid] variable would be also 16, and the car's file, 16.ini).And then just open the file, using the VehCounter variable(wich is obviusly different for every bhought vehicle.In this case[16] open with ini the file %d.ini[16.ini]).