> > I am trying to do a simple do_improve function in which the player can simply > type in 'improve <attribute>' for example "improve str" for improve strength > (obviously). Anyway this is how I tried to do it... > > ACMD(do_improve) > { > one_argument(argument, arg); > > if strcmp(*arg == 'str') Well strcmp needs 2 arguments, it'd be like strcmp(arg, "str) or something like that... dunno. I'd suggest: if(isname("str", arg)) { That definately works though. I MIGHT have the "str" and arg switched backwards, it might be isname(arg, "str") so try the first one (I believe that's correct) and if it doesn't work do it the other way around. But yeah, that'll solve your problems. Hades
This archive was generated by hypermail 2b30 : 12/07/00 PST