Here are there errors I get
act_wiz.c:2018: error: subscripted value is neither array nor pointer
act_wiz.c:2024: warning: implicit declaration of function ‘stc’
act_wiz.c:2028: error: subscripted value is neither array nor pointer
act_wiz.c:2031: warning: implicit declaration of function ‘set_pc_name’
act_wiz.c:2041: error: subscripted value is neither array nor pointer
act_wiz.c:2045: warning: implicit declaration of function ‘set_enter_room_text’
make: *** [obj/act_wiz.o] Error 1
Here is the command in question:
void do_form(CHAR_DATA *ch, char *argument)
{
char buf[MAX_STRING_LENGTH];
if (argument[0]=='\0')
{
send_to_char("Change your form to resemble what?\n\r",ch);
return;
}
if (!str_cmp(argument,"self") )
{
if (!IS_AFFECTED(ch,AFF_POLYMORPH) && !IS_VAMPAFF(ch,VAM_DISGUISED))
{
send_to_char( "You already look like yourself!\n\r", ch );
return;
}
stc("You transform back to your old form",ch);
sprintf(buf, "%s's form blurs and shifts to resemble %s.", ch->name,argument);
act(buf,ch,NULL,NULL,TO_ROOM);
REMOVE_BIT(ch->affected_by, AFF_POLYMORPH);
REMOVE_BIT(ch->pcdata->stats[UNI_AFF], VAM_DISGUISED);
free_string( ch->morph );
ch->morph = str_dup( "" );
set_pc_name(ch, ch->pcdata->switchname);
return;
}
sprintf(buf, "%s's form blurs and shifts to resemble %s.", ch->name,argument);
act(buf,ch,NULL,NULL,TO_ROOM);
set_pc_name(ch, argument);
free_string( ch->morph );
ch->morph = str_dup( argument );
SET_BIT(ch->affected_by, AFF_POLYMORPH);
SET_BIT(ch->pcdata->stats[UNI_AFF], VAM_DISGUISED);
send_to_char("Your form blurs and shifts to resemble ",ch);
send_to_char(argument,ch);
send_to_char(".\n\r",ch);
set_enter_room_text(ch, "");
return;
}
If you need any other info please let me know, I am new to coding muds |