Pain pills not helping period

Why doesnt ibuprofen help my period anymore ..I take 800mg and I can still feel cramps.