my period is irregular please help

I've been keeping track of my period because I've been having real strong menstrual pain and sometimes I get lightheaded because of it. When I'm on my period I make sure I drink lots of water and eat healthy foods. However in my family some of us are anemic and some are infertile so this is no shock for my family line. However, do you think I'm infertile or if I have issues with hormones or something I plan on seeing a doctor as soon as possible but I want to see what you guys think.