I don't know what the problam with my code

Most people won’t be inclined to download your files. You should paste your script directly into your post using code tags. That way we can read your code easily, and it will be available for anyone else who finds this post in the future.