Reason for pain must be sought out first. Painkillers will only temporarily subside your pain. Ketorolac(generic) two tabs dispersed in a glass of water for the first dose, then reduce it to single dose. Take it 8 hourly.
Next Steps
But do not rely only on medication. You need to get your teeth assessed. Visit Dr Tony's Delhi Dental and implant centre for your dental problem.