[NEWBIE] [CODE] unterminated where?

From: Brian Beffa (MortalCity@aol.com)
Date: 07/17/00


Somewhere, I suspect the 5th line up from the bottom a line is unterminated.
I tried to close it, and it still wounldnt be terminated correctly.  Any
corrections?

>    case SCMD_JAIL:
>      if (ch == vict) {
>        send_to_char("Oh, yeah, THAT'S real smart...\r\n", ch);
>        return;
>      }
>      if (PLR_FLAGGED(vict, PLR_CRIMINAL)) {
>        send_to_char("Your victim is already jailed.\r\n", ch);
>        return;
>      }
>      SET_BIT(PLR_FLAGS(vict), PLR_CRIMINAL);
>      GET_JAIL_LEV(vict) = GET_LEVEL(ch);
>      send_to_char("You've been caught doing something bad!  You feel as
you've been moved!\r\n", vict);
>      send_to_char("Jailed!\r\n", ch);
>      char_from_room(vict);
>      char_to_room(vict, r_jailed_start_room);
>      act("The wardens come in and haul $n's ass to jail!", FALSE, vict, 0,
0, TO_ROOM);
>      sprintf(buf, "(GC) %s jailed by %s.", GET_NAME(vict), GET_NAME(ch));
>      mudlog(buf, BRF, MAX(LVL_GOD, GET_INVIS_LEV(ch)), TRUE);
>      break;
>    case SCMD_PAROLE:
>      if (!PLR_FLAGGED(vict, PLR_CRIMINAL)) {
>        send_to_char("Sorry, your victim is not a criminal.\r\n", ch);
>        return;
>      }
>      if (GET_JAIL_LEV(vict) > GET_LEVEL(ch)) {
>        sprintf(buf, "Sorry, a level %d God jailed %s... you can't parole
%s.\r\n",
>           GET_JAIL_LEV(vict), GET_NAME(vict), HMHR(vict));
>        send_to_char(buf, ch);
>        return;
>      }
>      sprintf(buf, "(GC) %s paroled by %s.", GET_NAME(vict), GET_NAME(ch));
>      mudlog(buf, BRF, MAX(LVL_GOD, GET_INVIS_LEV(ch)), TRUE);
>      REMOVE_BIT(PLR_FLAGS(vict), PLR_CRIMINAL);
>      send_to_char("The board decides to give you another chance!\r\nYou've
bee$      send_to_char("Paroled.\r\n", ch);
>      char_from_room(vict);
>      char_to_room(vict, r_mortal_start_room);
>      act("The gates of the jail open and $n reemerges!", FALSE, vict, 0, 0,
TO_ROOM);
>      break;

Brian


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