are you sure you don't have any other scripts attached/running, that error wouldn't be present otherwise,

the z_offset is only a parameter created locally in the FNC_AttachCam function...? =/ strange one that...