version of PZ specified
One ";" was missing
Variable player was not declared in the whole function wich lead to errors