I changed the following and now it works.....

From:

   if ( sn = find_spell( ch,arg ) < 0 )
   {
    send_to_char( "You don't of know any powers by that name.\n\r", ch
);
    return;
   }

To:

   sn = find_spell( ch,arg );

   if ( sn <= 0 )
   {
    send_to_char( "You don't know any powers by that name.\n\r", ch );
    return;
   }


Don't know why it worked but it did.

Thanks for all the help!

Keith


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Valnir
Sent: Monday, November 08, 2004 2:39 PM
To: [email protected]
Subject: Re: Finding an affect by name and stopping it.


Just for giggles, try put () around the "sn = find_spell(ch,arg)" so it 
reads "if ( ( sn = find_spell(ch,arg) ) < 0 )"

- Valnir

Reply via email to