23 Aug, 2009, jonasdf85 wrote in the 1st comment:
Votes: 0
i dont know what it could be some advice for someone not so smart


if (GET_LED_BY(ch)) {
GET_LEADING(GET_LED_BY(ch)) = NULL;
GET_LED_BY(ch) = NULL;
}

if (GET_PULLING(ch))
{
if (GET_PULLED_BY(GET_PULLING(ch), 0) == ch)
** GET_PULLED_BY(GET_PULLING(ch), 0) = NULL;
if (GET_PULLED_BY(GET_PULLING(ch), 1) == ch)
** GET_PULLED_BY(GET_PULLING(ch), 1) = NULL;
GET_PULLING(ch) = NULL;
}

if (!IS_NPC(ch) && !ch->desc) {
for (t_desc = descriptor_list; t_desc; t_desc = t_desc->next)
if (t_desc->original == ch)
do_return(t_desc->character, NULL, 0, 0);

make[1]: Entering directory `/home/mud/jonas/doe/game/empiremud/src'
gcc -c -g -O2 -Wall handler.c
handler.c: In function âextract_charâ:
handler.c:825: error: invalid lvalue in assignment
handler.c:827: error: invalid lvalue in assignment
make[1]: *** [handler.o] Error 1
make[1]: Leaving directory `/home/mud/jonas/doe/game/empiremud/src'
make: *** [all] Error 2

**= line with error
23 Aug, 2009, Zeno wrote in the 2nd comment:
Votes: 0
Is this not already the same as this?
http://www.mudbytes.net/index.php?a=topi...

Why did you start a new topic?
23 Aug, 2009, jonasdf85 wrote in the 3rd comment:
Votes: 0
why not post the answer to what i posted then say something about the new post
it is a c and c++ board is it not
23 Aug, 2009, jonasdf85 wrote in the 4th comment:
Votes: 0
i did not mean to start a new post i did it on accident new to all the forum things just having some trouble from this empire mud i got off this site is all
just need some help
23 Aug, 2009, David Haley wrote in the 5th comment:
Votes: 0
Zeno asked if it was the same post because it is against forum etiquette to post the same question three times and generally frowned upon.

Anyhow, we'll need to see what GET_PULLED_BY and GET_PULLING are defined as.
23 Aug, 2009, Sharmair wrote in the 6th comment:
Votes: 0
Assuming this is the stock empireMUD, I had to fix something like this way back in '04
to get MSVC to compile the empireMUD code (I guess gcc has caught up). This is what
I did - In structs.h in the obj_data struct replace:
Creature pulled_by1;				/* Animal pulling this obj			*/
Creature pulled_by2; /* Up to two animals may be needed */

With:
Creature pulled_by[2];				/* Up to two animals may be needed	*/

And in utils.h replace:
#define GET_PULLED_BY(obj, i)	(i == 0 ? (obj)->pulled_by1 : (obj)->pulled_by2)

With:
#define GET_PULLED_BY(obj, i)	( (obj)->pulled_by[i] )

The error comes from trying to set the return of the conditional assignment operator (?:).
I think these were all the changes to this part of the code (though it seems there was also something
like this in set with names) I had to make, but I can look further if need be.
0.0/6