That is what I means, guess I wasn't clear enough.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony
Kuiper
Sent: Friday, December 13, 2002 7:12 PM
To: [email protected]
Subject: Re: [Noob] Clan talk only shows first word. [?]
> "Boh-Ahz" <[EMAIL PROTECTED]> wrote:
>
> >The problem is that you are stripping off 2, one word arguments from
the
> >"argument" variable that is passed to do_clan.
> >
> > argument = one_argument(argument, arg1);
> > argument = one_argument(argument, arg2);
> >
> >The first one is doing what you want I think. It is removing "talk"
off
> >the front of the string and storing it in arg1, returning the
remainder
> >to argument. The next like does the same thing, cept with arg2. So,
> >for example, if someone typed "clan talk Heya Clannies!",
> >
> >Arg1 == talk
> >Arg2 = Hey
> >
> >Below, after you check to make sure that arg1 == talk you do this:
> >
> >sprintf( buf, "{B[{W%s{B]{x clans {R'{x%s{R'{x\n\r",
> > ch->name,
> > arg2 );
> >
> >But, arg2 == "Hey", and argument contains "clannies!" I don't know
what
> >the intention of arg2 is, but if you remove arg2, and just use
argument
> >in its place below, you should be ok.
>
> When i do this, it cuts off the first word after the argument "talk"
but
displays the rest of the string. *rofl* im stumped, but whats new.
> Charlie
> the Noobz
>
Now, in addition to substituting 'argument' for 'arg2', remove the
variable 'arg2' and the call to one_argument() that uses 'arg2'. This
should fix the problem. :-)
Tony
--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom