31.05.2015, 11:10
After the data have been stored to variables (local), it creates the vehicle and assign to "vid" a new value. After that, it sets the fuel for that new vehicle ID but you store the password to the "vid" which is a different value since the vehicle has not been created yet.
Store it to a temporary string and after creating the vehicle, copy that temporary string to VehicleData[vid][Pass].
Store it to a temporary string and after creating the vehicle, copy that temporary string to VehicleData[vid][Pass].