If it was a guy friend, he's giving you a compliment to cheer you up. But if he uses it as your nickname or pet name, then he's just putting it out there that he likes you more then just as a guy friend, in case you want to do something about it. But that also means that he's not very good with girls so don't expect a prince charming, you'll have your work cut out for you, turning him into boyfriend material. :)
i have a questions to answer this question does this "guy friend" know he is only a friend and if so who told who first did you tell him or did he tell you? and if he told you then its just something he said to make you feel special and if you told him then he likes you..