Period help!

So I’ve been getting my period at odd times lately, it’ll skip two or so months and come and I’ve had it for a while since so was 12 now I’m 17 almost 18. I’m having issues with cramps, my back and front are both effected and I’ve taken midol around the clock of two extra strength pills but it isn’t affective, I’m not sure what else I can do but I really need help any advice?