mIRC Homepage
Posted By: HappyFappy setting $wildsite - 01/01/15 09:18 PM
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?
Posted By: Panda Re: setting $wildsite - 01/01/15 10:17 PM
Not sitting at computer, so can't test, but I think ...

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


... Note spacing
Posted By: KindOne Re: setting $wildsite - 01/01/15 10:34 PM
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
Posted By: Loki12583 Re: setting $wildsite - 01/01/15 10:34 PM
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
© mIRC Discussion Forums