sounds as if there was a ENTITY player definition somewhere in your code. that's weird, because player is defined as ENTITY*. honestly, i have no clue but would try to change ENTITY* player to ENTITY* myplayer and player = me to myplayer = my and replace player by myplayer.
a_Player is assigned to an entity in wed?
It does'nt work because you need the "player" to move the camera in this function. (so the standard function)