Ok, the speedo on my car hasnt worked since i got it. The previous owner said it was working before, but stopped just before i got it.
A few days ago i decided ill try to find out whats wrong with it.

I checked the back of the speedo, and made sure the cable connects properly into the gear.
The cable isnt broken as i pulled it out and made sure it could move freely and all that.
I pulled the cable off the gearbox and it seems that the inside cable isnt long enough to reach into the speed sensor. I managed to pull out the speed sensor part so that the cable can lock into it, which fixed it. But the speedo stopped working again after 20km.

Is there a way to stop the speed sensor thing having so much play in it so the cable can reach it properly?

Btw, i don't know how to take the speedo gear thing off the gearbox to have a look at the inside of it.