I moved your question into a new topic instead of that years old one.
Your issue is probably bad syntax (aka code typos)
This is NOT a code factory or code mechanics shop, but please post the full code you are using here (properly formatted after pasting, as per the instructions).