I didn't know where else to put this, so please don't get mad if I'm wrong
When you have a fainted pokemon on your PC, put it in your party, and have only that fainted pokemon in your party (with possibly more fainted pokemon, but no healthy ones) you don't get teleported to a pokecenter, your pokemon doesn't heal, etc etc. When I got into a battle, I automatically lost. But when I battled Jackson in the trainer school, he said what he would say if I would have won.