what helps you to stop cramping
Another possible way to stop leg cramps is to hydrate. It might take a little longer to address your pain, but once you have had water or a sports drink with electrolytes, you could prevent another cramp.
Relax the cramping muscle. Stop any activity that may have induced the cramp and lightly stretch the muscle, gently holding the stretch. You may even massage the muscle while or after you stretch, and maybe apply a heating pad as described below, to the area after stretching.