Bad bad pains

Am
I'm 24 weeks now and I was in the maternity ward last Saturday with really bad pains, they found blood in my wee and I'm on antibiotics now but the pains I'm getting are bad cramps! They said they can't do anything about the pains and the worst case is I go into labour! Has anyone else had bad pains?