Best bet for assistance with code/scripts that someone else has written, is to contact the author.
If you can't contact the author, or they refuse to respond, or they say that they can't (or won't) help you, then let us know where you got the code from, or, if that's not possible for some reason, provide us with a copy of the code.
There's just too many possibilities to even know where to begin with something like that.