On Mon, 6 Apr 1998, Thomas Smith wrote:
> if (GET_HIT(vict) > 0) {
> send_to_char("This person does not need first aid."\r\n", ch);
> return;
> }
You have an extra quote in your send_to_char() call. Remove it and you'll
fix your error with the unterminated character constant.
if (GET_HIT(vict) > 0) {
send_to_char("This person does not need first aid.\r\n", ch);
return;
}
> if (percent > prob) {
> send_to_char("Oppss!!\r\n");
send_to_char() needs a character to send the mesage to. Try this:
send_to_char("Oppss!!\r\n", ch);
> GET_HIT(vict) = GET_MAX_HIT(vict) - GET_MAX_HIT(vict) + 1;
If you want to set their HPs to one, then just do so!
GET_HIT(victim) = 1;
John Evans <evansj@hi-line.net> -- http://www.hi-line.net/~evansj/
Any sufficiently advanced technology is indistinguishable from magic.
--Arthur C. Clarke
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST