What is the code?
Is the the shift cable moving the gear selector switch on the transmission?
Where are you located? UK?
You are probably going to need some (techII scan tool) help no matter what the problem is.
Maybe this is why they sold it? Did it happen really really soon after buying it?