you have coughing and right side chest pain
for past few months.
You should get done a chest x ray
and see a chest physician .
this could be a chest infection
which is causing the pain and cough.If pain is more on taking breath then there is more chances of it being a infection in the lungs which is coming to the covering of the lungs ie the pleura
You may require antibiotics.
If you smoke stop doing that.
In doubt do reply