Painful muscle cramps in the legs, arms or abdomen, known as heat cramps, may be the first sign of a serious heat-related illness and can be a symptom of heat exhaustion or heat stroke. Heat cramps occur most often after exercise in hot environments.