If statement bracket error - 09/05/11 02:55 PM
I have seen a tutorial on mIRC scripting and I've made a test command:
But when I click check brackets it says there seems to be a bracket mis-match pointing to the last curly bracket and auto-indents it to look a bit strange:
I think this is because the if command doesn't work. It works if I do it like this:
But I want to do it the other way. Can anyone tell me what I did wrong?
Code:
on *:TEXT:*:#script-test:{ if ($me isop $chan){ if ($1 == !test){ msg $chan A test, you say? } }
But when I click check brackets it says there seems to be a bracket mis-match pointing to the last curly bracket and auto-indents it to look a bit strange:
Code:
on *:TEXT:*:#script-test:{ if ($me isop $chan){ if ($1 == !test){ msg $chan A test, you say? } }
I think this is because the if command doesn't work. It works if I do it like this:
Code:
on *:TEXT:!test:#script-test:msg $chan A test, you say?
But I want to do it the other way. Can anyone tell me what I did wrong?