mIRC Home    About    Download    Register    News    Help

Print Thread
#132676 13/10/05 05:19 AM
Joined: Oct 2005
Posts: 1
C
chr1831 Offline OP
Mostly harmless
OP Offline
Mostly harmless
C
Joined: Oct 2005
Posts: 1
hi i am trying to make a script where i type !rem UserName it removes it from the script userlist text here is what i got so far
on 6:text:!rem $$1:#help { ruser $$1 }

#132677 13/10/05 08:08 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
-> Don't use $1 in match text, it will not have a value, use * to match anything, ? to match a single character and & to match one word.
-> You forgot the : after the channel name
-> The whole line get's put in $1- when the event triggers, each word becomes $n with n the n'th word. This means that for "!rem joe" $1 == !rem and $2 == joe
-> With the correct match text (!rem followed by a word) you can be sure $2 is filled, so you don't really need the $$2. It's not wrong ofcourse smile

on 6:text:!rem &:#help: { ruser $$2 }


Link Copied to Clipboard