Compaq Presario V3000 charger stopped working and now buzzes
Unfortunately there are no perfect cables, and especially in case of a laptop, when you move it around a lot, roll the cable for travel etc. it gets bent a lot, especially in the place where the elastic cable goes into the hard plug or into the charger case. The conductors inside and the inner insulation finally break, giving at first intermittent connection (what you experienced before), and finally short-circuits the cable, resulting in charger damage.
You should be fine just replacing the charger, unless all this wiggling around didn't break the laptop power socket.
When looking for a replacement charger, note the voltage of the original (it should be exactly the same in the new one), the maximum current amperage (this should be same or - better - higher than original), and the size of plug.
Good luck :)