VoyForums

VoyUser Login optional ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time ]
Subject: what's wrong with this command string?


Author:
Zavo
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 19:12:01 09/21/04 Tue
In reply to: John 's message, "Re: Wintin scripts" on 15:38:57 06/20/04 Sun

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...

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
[> [> [> Subject: Re: what's wrong with this command string?


Author:
John
[Edit]

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...

[ Post a Reply to This Message ]
[> [> [> [> Subject: Re: what's wrong with this command string?


Author:
Zavo
[Edit]

Date Posted: 17:19:20 09/30/04 Thu

>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 :-))

[ Post a Reply to This Message ]
[> [> [> [> [> Subject: Re: what's wrong with this command string?


Author:
John
[Edit]

Date Posted: 03:21:49 10/08/04 Fri

np

>>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 :-))

[ Post a Reply to This Message ]



VoyUser Login ] Not required to post.
Post a public reply to this message | Go post a new public message
* Notice: Posting problems? [ Click here ]
* HTML allowed in marked fields.
Message subject (required):

Name (required):

  Expression (Optional mood/title along with your name) Examples: (happy, sad, The Joyful, etc.) help)

  E-mail address (optional):

* Type your message here:

Choose Message Icon: [ View Emoticons ]

Notice: Copies of your message may remain on this and other systems on internet. Please be respectful.

[ Contact Forum Admin ]


Forum timezone: GMT+0
VF Version: 2.94, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.