mIRC Home    About    Download    Register    News    Help

Print Thread
* /inc: invalid parameters ... whats wrong? #67593 12/01/04 04:45 PM
Joined: Jan 2004
Posts: 14
N
no_brain Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2004
Posts: 14
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?

Re: * /inc: invalid parameters ... whats wrong? #67594 12/01/04 04:59 PM
Joined: Jan 2003
Posts: 148
K
Knappen Offline
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
on 1:TEXT:%ask:#:{
if (%as == 1) {
msg # 13Right! One Point!
%as = 0
inc %qa
msg # Now %qa Points for you!
}
}

Re: * /inc: invalid parameters ... whats wrong? #67595 12/01/04 05:49 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
[-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?


If it ain't broken, don't fix it!