mIRC Home    About    Download    Register    News    Help

Print Thread
setting $wildsite #250071 01/01/15 09:18 PM
Joined: Sep 2014
Posts: 83
H
HappyFappy Offline OP
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?

Re: setting $wildsite [Re: HappyFappy] #250072 01/01/15 10:17 PM
Joined: Nov 2014
Posts: 32
P
Panda Offline
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

Re: setting $wildsite [Re: HappyFappy] #250073 01/01/15 10:34 PM
Joined: Feb 2011
Posts: 315
K
KindOne Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Feb 2011
Posts: 315
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. http://forums.mirc.com/ubbthreads.php/topics/241147/mSLDev_-_The_Ultimate_In_Scrip


irc.swiftirc.net #msl (mIRC Scripting Language)
Re: setting $wildsite [Re: Panda] #250074 01/01/15 10:34 PM
Joined: Jan 2004
Posts: 1,274
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,274
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