How to stop being so nice to the wrong people

So I like this guy and we are like “best friends”(that’s how he considers our friendship). I’m always sweet to him and make him compliments. And he never does make me compliments. He basically just ignores me. How can I stop being so kind to him? I hate it so much