Re: [Newbie] Getting character's name for == conditional

From: Brian (brian@IMI-BOTTLING.COM)
Date: 03/24/98

-----Original Message-----
From: Mike Schlagenhauf <mschlag@CS.PURDUE.EDU>
To: <>
Date: Tuesday, March 24, 1998 3:22 PM
Subject: Re:  [Newbie] Getting character's name for == conditional

>Altho this is kinduva newbie C question, I'll answer it, because I think I
>know what your problem is ('tho the code would have been nice).  What you
>have is more of a logic error than anything, probably.
>    In your function, check to make sure that you're doing GET_NAME(vict)
>and not GET_NAME(ch), as (again, I'm assuming because I don't know what
>code looks like) GET_NAME(ch) would get the name of the implementor, and
>kill them, whereas GET_NAME(vict) will get the person they typed in
>(assuming the rest of your code is correct  :).

All that I already know... :)  My question is what would the conditional
look like to compare "testdummy" to the value that's taken from

if (GET_NAME(vict) == 'testdummy')

doesn't work...  Ya... this is definitely a newbie C question... I better
do this one by myself without anymore bother... Thanks for your help,
though! =)

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST