if ( ((OBJ_DATA*) tar = get_obj_here( NULL, room, target)) == NULL)
if ( ((CHAR_DATA*) tar = get_char_room( NULL, room, target)) == NULL)
if ( ( tar = (void*)get_obj_here( NULL, room, target)) == NULL)
…
if ( ( tar = (void*)get_char_room( NULL, room, target)) == NULL)
The bolded line are coming up as:
mob_cmds.c:2358: error: invalid lvalue in assignment
mob_cmds.c:2368: error: invalid lvalue in assignment
From what I've been told by a friend, its because its changing the output type temporarily or something and tar needs to be declared seperately from the if, but being relatively new to coding C I don't entirely understand that. Is there anyone that would be so nice as to help me out with what is the LAST error I've come up with(dozens of warnings still, but I'll deal with those later).