How to stop cramps fast

How do i stop cramps before I go to class in 30 minutes I already took 3 pills