Do they have the same meaning? If not when to use each of them.
Without context it's difficult to guess what you mean by "hit". It could mean to get physically hit by another person but it could also be a slang word for unwanted sexual attention, use of drugs, etc. Anyway...
Do you ever get hit when you approach women like that? I presume you've approached women that way several times and want to know if anytime, anywhere, you got hit.
Have you ever got hit for approaching a woman like that? I don't presume it is a habitual action of yours to approach women like that and only want to know if you ever got hit.