Well I now read the steps from Kyomcfizzle, so I now know why the error appeared. But, I am afraid to follow the steps in case it might screw up my game, I'm not sure if I want to use it, but its either that or restart my game full of hard work. What I might do is wait for somebody to test it and to tell us the results if it works or not.
I tried the code, and it said an error occurred and to turn off the game, I got scared that something bad might of happened, but I didn't save which was good, so my pokedex was still there. Are you sure this wont mess up your copy of the game?