mIRC Homepage
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?
on 1:TEXT:%ask:#:{
if (%as == 1) {
msg # 13Right! One Point!
%as = 0
inc %qa
msg # Now %qa Points for you!
}
}
[-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?
© mIRC Discussion Forums