18.12.2014, 17:39
This is because your indentation and brackets are a mess. When you're coding, right when you make an opening bracket, create the closing one and THEN fill it. This will help prevent problems like this in the future.
Make the brackets
Fill them
I would go through that code and reorganize it for you but it's a mess. The last few lines of your function should look like this however.
Make the brackets
Код:
{ }
Код:
{ code }
Код:
} } return 1; }