I got the code notify from
http://www.alsherok.net/afkmud/scripts/download.php?file=Sadiq/notify.txt
Followed each and every step to put this code in. When I go to compile using Cygwin I get this error.
act_comm.c:1891: 'd' undeclared (first use in this function)
for ( d = first_descriptor; d; d = d->next )
{
CHAR_DATA *vch;
NOTIFY_DATA *temp;
temp = NULL;
vch = d->character;
if ( d->connected == CON_PLAYING && vch != ch)
{
for(temp = vch->pcdata->first_notify; temp; temp = temp->next)
{
if (on_notify(vch, ch) == TRUE && temp->name == ch->name )
{
set_char_color(AT_NOTIFY,vch);
ch_printf(vch,"NOTIFICATION: %s has left the game.\n\r",temp->name);
break;
}
}
}
}
I don't want to mess anything up so any help would be greatly appreciated!
http://www.alsherok.net/afkmud/scripts/download.php?file=Sadiq/notify.txt
Followed each and every step to put this code in. When I go to compile using Cygwin I get this error.
act_comm.c:1891: 'd' undeclared (first use in this function)
for ( d = first_descriptor; d; d = d->next )
{
CHAR_DATA *vch;
NOTIFY_DATA *temp;
temp = NULL;
vch = d->character;
if ( d->connected == CON_PLAYING && vch != ch)
{
for(temp = vch->pcdata->first_notify; temp; temp = temp->next)
{
if (on_notify(vch, ch) == TRUE && temp->name == ch->name )
{
set_char_color(AT_NOTIFY,vch);
ch_printf(vch,"NOTIFICATION: %s has left the game.\n\r",temp->name);
break;
}
}
}
}
I don't want to mess anything up so any help would be greatly appreciated!