Whatley wrote: [SNIP] > I'm using the training snippet from the ftp site/snippet site and am having > problems with the argument. When typing trains it automatically defults to the > invalid argument line and displays the "Train what?". I'm snipping in one > argument for an example: > > -snip- did you snip this line ? one_argument(argument, arg); If you didn't it's what you need.. argument will contain the full line, including spaces, control codes etc, while the new var arg contains the first 'argument' word without whitespace or control codes. Then use arg instead of argument the rest of the way, and it should do the trick. ie : if (!*arg) instead of > if (!*argument) [SNIP] +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT