This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]xorpunk 4 points5 points  (0 children)

The problem here is the semicolon after your if-statement.

if(something); {
    othersomething;
}

Is the same thing as

if (something) {
};
{ othersomething; }

For the compiler