Well what are you trying to do?

Player walk fight was from the A5 templates of 10 years ago. You probably have A7. So you mixed up A5 and A7 code. A7 is compatible to A6 but not to A5. Trying to use an old A5 script in A7 is not what a beginner should to for learning game programming. You will make thousands of errors and of course they are indicated by the engine in error messages.

If you want to learn game programming, there is a beginners tutorial with which you should start.