what happens when I type "go xx yy" is that all the 2 values after the go are stored in the ADP variable, and none in the MOB var....what's wrong? My intentions are to store the "xx" in the ADP and the "yy" in the MOB...
[
Next Thread |
Previous Thread |
Next Message |
Previous Message
]
Replies:
[> [> [> Subject: Re: what's wrong with this command string?
Date Posted:16:07:28 09/26/04 Sun
This is how i'd write it,
#alias {go %1 %2} {#var ADP $1;#var MOB $2}
when you use %0, it takes everything on from there to the end of the line i think. so if you read any of my bots etc, you'll notice that %0 isn't used a lot unless on its own for setting a target or something.
yihaaa!
>I can't understand why this line doesn't work like
>it's supposed to do.
>
>#alias {go $0 $1} {#var ADP $0; #var MOB $1}
>
>what happens when I type "go xx yy" is that all the 2
>values after the go are stored in the ADP variable,
>and none in the MOB var....what's wrong? My intentions
>are to store the "xx" in the ADP and the "yy" in the
>MOB...
>>This is how i'd write it,
>>#alias {go %1 %2} {#var ADP $1;#var MOB $2}
>
>Yeah, now it works! Tnx for the info, U know, I'm just
>a newby in wintin scripting :-))