mIRC Home    About    Download    Register    News    Help

Print Thread
#250071 01/01/15 09:18 PM
Joined: Sep 2014
Posts: 83
H
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
im trying to get this to work:

Code:
if($wildsite == *!*@unaffiliated/bobsburgers) { msg # NOPE CANNOT PLAY }


but it wont work? i think im just forgetting something but i dont know what smirk help?

Joined: Nov 2014
Posts: 32
P
Ameglian cow
Offline
Ameglian cow
P
Joined: Nov 2014
Posts: 32
Not sitting at computer, so can't test, but I think ...

Code:
if ( $wildsite == *!*@unaffiliated/bobsburgers ) { msg # NOPE CANNOT PLAY }


... Note spacing

Joined: Feb 2011
Posts: 448
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 448
Issue is you have "if(", that is not valid as the "(" cannot touch the "if".

Fixed...
Code:
if ($wildsite == *!*@unaffiliated/bobsburgers) { msg # NOPE CANNOT PLAY }



Might want to look into mSLDev, useful program for finding slight syntax issues. https://forums.mirc.com/ubbthreads.php/topics/241147/mSLDev_-_The_Ultimate_In_Scrip

Panda #250074 01/01/15 10:34 PM
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
The only space that matters is the one after the 'if', you'll have a bunch of errors in your status window: IF($WILDSITE Unknown command


Link Copied to Clipboard