Just keep writing. There's no magic formula, and everyone's experience is different, but all of us experience a lot of rejection along the way. I filled boxes with rejection letters before I sold my first short story for little more than pocket change. There's always somebody more successful than you, and jealousy is an easy trap. Enjoy each little success, and don't let the disappointments stop you.