In any case: whenever you get an error message post it here so people can help you faster and a lot more motivated.

The most simple reason is the line up of the scripts.
If there is a pointer used in the shader code make sure that the pointer decleration will be executed before the shader is

pleae post the error