play sound after player got in vehicle

Hi,

i have made a script so the player can enter and exit the vehicle.

Now the vehicle has a motor sound, that is currently of but i want it to play when the
player has entered the vehicle.

I tried to do this after the enter sequence but unity always give me an error

Expressions in statements must only be executed for their side-effects.

And i can’t figure a way out of this .

I usally get this error when I type the audio code wrong, I sometimes put audio.Play(); when it is really audio.PlayOneShot(<example); I don’t know if this will help you or not