ah, so its not predefined! thanks. (1b assumed it was predefined) i had seen parts of scripts where this.angle was used, and assumed it was predefined.
this.angle = getangle(mousex-playerx, mousey-playery);
i had tried doing a simliar operation with the 2 seperate variables.. sounds like it was just bad programming not misunderstasnding of the language

. thanks for your help.