Re: [Circle] Do_who Parse Error

From: charles (charles@engr.mun.ca)
Date: 08/12/96


-------------< COMMENTS BY Grond >--------------



----------< END OF COMMENTS BY Grond >----------

Hi,

On Mon, 12 Aug 1996 grond@grotl.com wrote:

> CH>> I'm getting a parse error after ) on the GET_TITLE(wch)); area on this
> CH>> piece of code, any help?
> CH>>
> CH>>
> CH>> sprintf(Mort_buf, "%s%s[%2d %s %s] %s %s|n",Mort_buf,
> CH>>   ((GET_CLASS(wch) == CLASS_CLERIC) ? CCMAG(ch,C_SPR)) :
> CH>>   ((GET_CLASS(wch) == CLASS_WARRIOR) ? CCYEL(ch,C_SPR)) :
> CH>>   ((GET_CLASS(wch) == CLASS_THIEF) ? CCBLU(ch,C_SPR)) :
> CH>>   ((GET_CLASS(wch) == CLASS_MAGIC_USER) ? CCRED(ch,C_SPR)),
> CH>                                see this? ^ need a colon here ^
> CH>>   GET_LEVEL(wch), CLASS_ABBR(wch), RACE_ABBR(wch),
> CH>>   GET_NAME(wch), GET_TITLE(wch));
> 
> CH>you have a "?" with no ":" and no second half.  ie., in "X?Y:Z" you have
> CH>no colon or "Z" in that statement.
> 
> I've got the same problem, it's not on the last line like you mentioned,
> I'm getting a parse error on the first line.


But the compiler will report the error as being on the first line becuase 
it is all read into the compiler as one line.

Later




> 
> Grond
> 
> SENT FROM: GAME ROOM ON THE LAKE BBS (GROTL.COM)
> YOUR PLACE FOR ONLINE ENTERTAINMENT
> PHONE: (704) 664-6742
> 
> 
> +-----------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> +-----------------------------------------------------------+
> 

SENT FROM: GAME ROOM ON THE LAKE BBS (GROTL.COM)
YOUR PLACE FOR ONLINE ENTERTAINMENT
PHONE: (704) 664-6742


+-----------------------------------------------------------+
| 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