Re: [newbie][code] "unterminated character constant"

From: Derek L. Karnes (dkarnes@mystech.com)
Date: 01/03/97


Nic Suzor wrote:
> 
> Hi,
> 
> I am trying to make a bounty command, which places a bounty on a players
> head. Now, the problem i have, is when i compile, i get this error:
> unterminated character constant.
> i am pretty sure this has to do with the  long amount  but im not sure how
> to fix it. if someone can please point me in the right direction, it would
> be much appreciated :)
> 
> i have a dreadful feeling its something really stupid, but i cant work it
> out...

Yeppers, but hey, happens to the best of us :)

Put a quote at these places:



> 
<snip>
>   1256      send_to_char("The thought of doing that revolts you!\r\n, ch);
---------------------------------------------------------------------^
>   1257      return;
>   1258    } else if ((amount = atoi(buf2)) < 1) {
>   1259      send_to_char("Bounty must be a positive number!\r\n, ch);
----------------------------------------------------------------^
>   1260      return;
>   1261    } else if (GET_LEVEL(vict) >= LVL_GOD) {
>   1262      send_to_char("Yeah, right...\r\n, ch);
---------------------------------------------^
>   1263      return;

--
- Derek L. Karnes
- Software Engineer
- Mystech Associates, Inc.
- dkarnes@mystech.com
+-----------------------------------------------------------+
| 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/18/00 PST