mIRC Homepage

* /inc: invalid parameters ... whats wrong?

Posted By: no_brain

* /inc: invalid parameters ... whats wrong? - 12/01/04 04:45 PM

Remote:

on 1:TEXT:%ask:#: if ( %as == 1 ) { /msg # 13Right! One Point! | %as = 0 | /inc [-s] <%qa> 1 | /msg # Now %qa Points for you! }

Variables:

/set [-s] <%qa> 0


Whats wrong?
Posted By: Knappen

Re: * /inc: invalid parameters ... whats wrong? - 12/01/04 04:59 PM

on 1:TEXT:%ask:#:{
if (%as == 1) {
msg # 13Right! One Point!
%as = 0
inc %qa
msg # Now %qa Points for you!
}
}
Posted By: Doqnach

Re: * /inc: invalid parameters ... whats wrong? - 12/01/04 05:49 PM

[-s] <== the [] mean the value is optional
<%qa> <== you need to fill in a variable name here

when copy pasting from the help file you need to remove those brackets for it to work

the help file says:

/inc [-cszuN] <%var> [value]


so the real command is:
/inc -cszu3 %somevar somevalue

see?
© 2021 mIRC Discussion Forums