Cramping ?

When I walk a little bit of a distance especially when I have to pee I get this cramping pain! Has this happened to anyone it happens more if I’m walking while having to pee