You're supposed to have only [code] before the code and only [/code] after the code, not [code][/code] before and after. Go ahead and edit your post to fix it.
As for the problem, you haven't shown us the relevant code. Show the code that the error refers to and tell us the line number.