It could be a lot of reasons why it is hurting when you urinate, and not many are serious. Doesn't hurt to get it checked out. But a stomach cramp coupled with urination pain sounds like an infection and can get cleared very quickly.
I'd advise you to drink 8 glasses of water, until your urination becomes near white. Force yourself, and the pain will be substantially less.