Re: Saving to current room prior to exit

From: Randell L. Hodges (rhodges@san.rr.com)
Date: 03/07/00


just copy the first arg over as the 2nd arg and add ->in_room,

example;

save_char(d->character, d->character->in_room);
save_char(vict, vict->in_room);

save_char(yada_yada, yada_yada->in_room);


Randell


-----Original Message-----
From: Circle Discussion List [mailto:CIRCLE@post.queensu.ca]On Behalf Of
Minturn.Del.PRC.Oceana
Sent: Tuesday, March 07, 2000 10:57 AM
To: CIRCLE@post.queensu.ca
Subject: Re: [CIRCLE] Saving to current room prior to exit


Looks like same problem over and over..

C:\circle\src\comm.c(1824): save_char(d->character, ch-
>in_room); //changed from NOWHERE 022400 BV
c:\circle\src\comm.c(1824) : error C2223: left of '->in_room' must point to
struct/union

c:\circle\src\comm.c(1824) : error C2065: 'ch' : undeclared identifier

It doesn't like the ch->in_room since ch has not been declared.
ch = d->character; //at top of function

Someone please correct me if I am wrong!


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT