Without knowing the specific medications you where prescribed. I can't answer that question. There are things to consider,the potency, your weight, your tolerance to narcotics, your kidney and liver functions, to just mention a few. Always consult your Doctor first.
I think you can just don't take those medicine together. Give at least 4 hours interval before you take another medicine. But it's always better to ask a doctor regarding the pain you feel and the medicine you take.