What GameStudio Edition and Version are you using?

(I'm asking because you get an error using znear)