mIRC Home    About    Download    Register    News    Help

Print Thread
#78346 07/04/04 11:07 AM
Joined: Sep 2003
Posts: 8
S
sgh Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2003
Posts: 8
Type this:
//var %x = 1 | while (%x <= 10) { echo -a * %x | %x = %x + 1 }
Why doesn't it works ? I know I could use inc %x instead and it'd work, but I'd like to know...
Thanks.


"Blessed is he who expects nothing, for he shall never be disappointed." (Benjamin Franklin)
#78347 07/04/04 11:23 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
That'll work just fine in a script, however the %variable = value syntax won't work from the command-line. I don't know why, it's possible it's a bug.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#78348 07/04/04 12:51 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
It's because of the command line restrictions, regarding commands that start with an identifier or variable. Apparently mirc cannot distinguish a variable assignment with %var = value from a command starting with a variable.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard