24.01.2013, 22:15
In my GM, when it remove an owned car (via admin selling, crushing it, or normal selling it) it removes the Vehicle file in the dini folder (EX: 13.ini).
The problem is is that in the GM everything in the script uses GetPlayerVehicleID, so removing a car thats loaded, messes everything up (all the vehicle profiles will be off by one).
Example: When I sell Vehicle 13 (In the vehicle profiles it's 13.ini and in user profiles it's Car1=13) it removes the vehicle profile (13.ini) and sets Car1=0 in the user profile... So when the GM next updates there will be no more Vehicle 13, however if there's a Vehicle 14 (In the vehicle profiles it's 14.ini and in user profiles it's Car4), that car would be loaded as Vehicle 13 according to GetPlayerVehicleID as there is no longer a Vehicle 13... But in the profile that car should be 14...
PLEASE I NEED HELP ON THIS!!!
Thanks,
jakejohnonusa
*I will Rep for this for those who care, this is a HUGE problem in my server.*
The problem is is that in the GM everything in the script uses GetPlayerVehicleID, so removing a car thats loaded, messes everything up (all the vehicle profiles will be off by one).
Example: When I sell Vehicle 13 (In the vehicle profiles it's 13.ini and in user profiles it's Car1=13) it removes the vehicle profile (13.ini) and sets Car1=0 in the user profile... So when the GM next updates there will be no more Vehicle 13, however if there's a Vehicle 14 (In the vehicle profiles it's 14.ini and in user profiles it's Car4), that car would be loaded as Vehicle 13 according to GetPlayerVehicleID as there is no longer a Vehicle 13... But in the profile that car should be 14...
PLEASE I NEED HELP ON THIS!!!
Thanks,
jakejohnonusa
*I will Rep for this for those who care, this is a HUGE problem in my server.*