Re: [Circle] Do_who Parse Error

From: grond (grond@grotl.com)
Date: 08/12/96


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.

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



This archive was generated by hypermail 2b30 : 12/07/00 PST