How can a girl know for sure that a guy likes her when he is always flirting with her but says he doesn't like her?

If he is always flirting with you, but says that he does not like you, then he probably only wants one thing. And you know what that is. Forget him and move on.