NULL!=player is correct, this is not the problem. The problem is wrong syntax, forgetting the () and naming his action "player", this gives a syntax error when ever "player" is used in the script.