mIRC Home    About    Download    Register    News    Help

Print Thread
#254922 09/09/15 09:01 PM
M
michaelukz
michaelukz
M
So I am probably stupid, but For some reason my simple test script is not working here is the code >:
Code:
on *:text:!mod:#: {
  	if ($nick == bob) {
    msg $chan working
  }
  else msg $chan nope
}


In the main panel where it shows the errors it says >: "IF Unknown command"


Any help would be appreciated :3

S
Sjoepele
Sjoepele
S
If this works then i think indentation was the problem? im not sure

Code:
on *:text:!mod:#: {
  if ($nick == bob) {
    msg $chan working
  }
  else msg $chan nope
}

R
REDxPHOEN
REDxPHOEN
R
What is this ment to do?

M
michaelukz
michaelukz
M
It's a test script to test certain parts of my scripts and then I found an issue with if's which worries me because most of my scripts act that way haha

Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
You have a tab character in the script, mIRC does not handle these.

M
michaelukz
michaelukz
M
There are no spaces / tabs - When I use the "check brackets" Tool, it spaces things for me?

R
REDxPHOEN
REDxPHOEN
R
It doesnt do everything though. sometimes it misses things out. Just saying


Link Copied to Clipboard