Re: Easy Code Question

From: David Klasinc (klasinc@sk-pttsc.lj.edus.si)
Date: 01/16/97


On Thu, 16 Jan 1997, DJ Pure wrote: 

> Q1.T his might be sorta stupid, but I need to add a check to see if the
> player is **holding** an item (which i have created of course). What's the
> macro for that please ? I couldn't seem to find it (i did look through the
> utils.h)

 if(GET_EQ(ch, WEAR_HOLD)) {
  ...
  }

 Something like that?

> Q2. How do i make a structure equal zero/Null ??
> 
> I have this ...
> 
> 	obj->spell_info =  NULL ;  // 72.
> and the error is
> C:\Mud Stuff\Circle Mud\src\objsave.c(72) : error C2115: '=' : incompatible
> types

 C:\Mud Stuff? Eeek sounds like windows... *shiver* *grin*


WildLion!


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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