Here is the draw function which draws the parts of the car, in this function car rims is checked and flag is checked, and i need to rotate the tire rim as i move the car. Someth
You're almost certainly applying the rotation and transformation in the wrong order, so that the rim is rotated about some point other than the center of the tire.
You might try doing the rotation in the MODELVIEW matrix and the translation in the PROJECTION matrix.