I don't have time to debug this for you. You didn't state which version of Maya you're using, and that script isn't supported on newer versions. Look around for some of the other automatic rig creators online.
Imagination is more important than knowledge.