Audil10 I've experienced leg cramps. Started off sporadically then increased in occurrence, usually same leg and while sleeping. I tried everything before reading on this site about a connection to dehydration and that taking magnesium had helped some. After increasing my water intake all day and beginning magnesium supplements in the evening, they've pretty much subsided.
Personally, I've noticed a connection with sweets and alcohol as well. Consuming either of those in any quantity larger than a single, small serving brings the cramps back.
Of course, as always, it's best to check with your GP first.