You get error messages because you're doing stuff that should be in a function outside of a function.
Or so it looks to me from the mere snippet you posted.
You get error messages because you're doing stuff that should be in a function outside of a function.
Or so it looks to me from the mere snippet you posted.