How do I fix a cocaine problem?

Mutual support helps. You might consider attending a meeting of Cocaine anonymous.
See below. Counseling and 12-step meetings to start. Of course, you need to be motivated. Certain meds like baclofen, antabuse, bromocriptine, Chantix (in smokers), zofran (ondansetron) (low-dose) and psych meds for co-occuring disorders may boost the chances of success.