The first code, says there (Hold L and talk to trainers) to rematch the trainers.
Means you got to hold your L button until you talk to the trainer you want to battle.
(Do not let go of the L button until you talk to the trainer.)
There are some cheats you need buttons to activate them.
I hope I helped you.