The code is normally shown as the last three digits on the back of the card (on, or next to, the signature strip). If you've found a longer number, simply ignore everything except the last three digits.
If that doesn't help, please tell us what type of car you're trying to use. (Debit card? Credit card? Issuer?).