If you have a calcium deficiency, you may have more frequent muscle cramps. I don't know if there's anything else.
I'm not a medical practitioner, but I used to work for a doctor, who advised calcium for my grandmother, who suffered leg cramps at night.