Exsqueeze me, but, I didn't mean to sound greedy if you got the feeling that "I want other people to write a code for ME" I didn't mean that, I'm just sprouting off ideas I've always had boiling in my head, and since I can't code 'em, other coders could (if they want) and share it. That's what I'd do if I could, course, then I wouldn't be asking... I didn't mean "I want 4 or 5 people to write a catapult code for MY MUD", cause I could probably bet most of you don't give a damn about my MUD ;) Anyways, I've got a few food ideas in me head, so I'll probably send some every once and awhile. My C skills basically extend to making my name show up on the screen...heh :) Excuse me while I clean up the pizza I dropped on the floor....sigh.... That's my 2 dollars....er...cents... -J "Wine is not something you drink for breakfast, stupid" Wise Words from J - #324 ...and dammit, if you didn't read the CircleMUD FAQ, then do it! +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+ From 1CMC3466@ibm.MtSAC.edu Tue, 20 Aug 96 14:37:15 PDT X-SystemInfo: MyE-Mail: EMail X-Message-No: 3895 (database) From: Curtiss <1CMC3466@ibm.MtSAC.edu> To: circle <circle@cspo.queensu.ca> Subject: Re: [Circle] Races Code Date: Tue, 20 Aug 96 22:37:00 Message-ID: <199608202240.RAA13536@cspo.queensu.ca> X-POP3-Rcpt: lk4150@per Return-Path: <@QUCDN.QueensU.CA:owner-circle@cspo.queensu.ca> Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA [130.15.126.2]) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id XAA13706 for <lk4150@krull.dk>; Tue, 20 Aug 1996 23:57:39 +0200 Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Tue, 20 Aug 96 18:03:27 EDT Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id RAA13540; Tue, 20 Aug 1996 17:40:55 -0500 Received: from ibm.MtSAC.edu by cspo.queensu.ca (SMI-8.6/SMI-SVR4) Received: from IBM.MTSAC.EDU by ibm.MtSAC.edu (IBM VM SMTP V2R2) Organization: Mt. San Antonio College Sender: owner-circle@cspo.queensu.ca Precedence: bulk On Tue, 20 Aug 1996 15:26:06 -0500 you said: >Hi Guys- > >I am in the process of adding races to my mud. I am using mostly my own >code and some ideas >from various posts to this list. I can't find the source of this seemingly >simple error. When I try >to add the following lines to db.c's char_to_store and store_to_char >functions, I get parse errors in both lines. It doesn't make any sense to >me because it seems like they are correct. Any help is >appreciated. > > >in the store_to_char function after GET_LEVEL(ch) = st->level, >add the line: >GET_RACE(ch) = st->race; > >and in char_to_store, after st->level = GET_LEVEL(ch), add the line: >st->race = GET_RACE(ch); > > >I get parse errors before both ;'s in these lines. I count 2 paraentheses, >and one semi-colon. > The error is more than likely in the macro and more specifically where you defined the macro at, utils.h I presume. If you added the race variable to the char_player_data structure then your race macro should be #define GET_RACE(ch) ((ch)->player.race), check to see if that's the way you have it. -- Curtiss +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/07/00 PST