Post some code showing where you get errors.
Hello,
I have a problem with the Expression 2 Gate. I already explained my problem in the german Garry's Mod forum, but it seems that nobody undestands what my problem is.
So here's my problem (It came up first, after updating wiremod via TortoiseSVN two days ago.):
Everytime I use paranthesis (), I get the validation error: "Right paranthesis ()) without matching left paranthesis."
It doesn't matter in which context I use them (if-structures or something else). I can even just open a new E2 delete everything and write "()" and I get the same validation error. But strangely it doesn't happen with older projects and they contain tons of paranthesis. But as soon as I edit the old projects and insert paranthesis I get the error again.
Post some code showing where you get errors.
It doesn't matter.
I just write:
Or with an if statement. It really doesn't matter. As soon as paranthesis are in the code I get the error.Code:@name @inputs @outputs @persist @trigger all ()
() on its own does not work. try (0).
.siht daer ot gniyrt emit detsaw ev'uoY
Ok forgive me. I made a mistake. I did some research and noticed it only comes up with if-statements. For example with:
But if I validate old projects with if-statements, there are no errors as long as I don't add a new if-statement.Code:@name test @inputs Input @outputs Output @persist @trigger all if (Input) { Output = 1 } else { Output = 0 } #This example is without error: Output = 1*(Output - 1)
EDIT: The problem seems to be solved. I don't know how, because the same Expression that didn't work some hours ago, is now without errors. Sorry
Last edited by Itsab; 01-24-2010 at 06:43 AM.
Bookmarks