<< >>medit.c(180) : error C2065: 'MPROG_DATA' : undeclared identifier
>
>
>Seems to me that somewhere a "#if OASIS_MPROG" is missing...
Or he doesn't have MobProgs. >>
Okay...I just patched in Mobprogs (by hand), or tried to, and here's what I
got:
cl -c /nologo /I. /IC:\VCpp5pro\INCLUDE act.wizard.c
act.wizard.c
act.wizard.c(116) : error C2143: syntax error : missing ';' before 'type'
act.wizard.c(126) : error C2065: 'victim' : undeclared identifier
act.wizard.c(126) : warning C4047: '=' : 'int ' differs in levels of
indirection from 'struct char_data *'
act.wizard.c(130) : error C2065: 'vict' : undeclared identifier
act.wizard.c(130) : warning C4047: 'function' : 'struct char_data *' differs
in levels of indirection from 'int '
act.wizard.c(130) : warning C4024: 'send_to_char' : different types for formal
and actual parameter 2
act.wizard.c(131) : warning C4047: 'function' : 'struct char_data *' differs
in levels of indirection from 'int '
act.wizard.c(131) : warning C4024: 'send_to_char' : different types for formal
and actual parameter 2
act.wizard.c(135) : error C2223: left of '->char_specials' must point to
struct/union
act.wizard.c(135) : error C2223: left of '->player' must point to struct/union
act.wizard.c(135) : error C2223: left of '->player' must point to struct/union
act.wizard.c(143) : error C2282: 'room_rnum' is followed by 'find_target_room'
(missing ','?)
act.wizard.c(2815) : fatal error C1004: unexpected end of file found
NMAKE : fatal error U1077: 'D:\DEVSTUDIO\VC\BIN\cl.exe' : return code '0x2'
Stop.
Error executing NMAKE.
And here's the code behind it. ACMD(do_send) is line 116.
ACMD(do_echo)
{
skip_spaces(&argument);
if (!*argument)
send_to_char("Yes.. but what?\r\n", ch);
else {
if (subcmd == SCMD_EMOTE)
sprintf(buf, "$n%s%s", *argument == '\'' ? "" : " ", argument);
else
strcpy(buf, argument);
MOBTrigger = FALSE;
act(buf, FALSE, ch, 0, 0, TO_ROOM);
if (PRF_FLAGGED(ch, PRF_NOREPEAT))
send_to_char(OK, ch);
else {
MOBTrigger = FALSE;
act(buf, FALSE, ch, 0, 0, TO_CHAR);
}
}
ACMD(do_send)
{
struct char_data *vict;
half_chop(argument, arg, buf);
if (!*arg) {
send_to_char("Send what to who?\r\n", ch);
return;
}
if (!(vict = get_char_vis(ch, arg))) {
send_to_char(NOPERSON, ch);
return;
}
send_to_char(buf, vict);
send_to_char("\r\n", vict);
if (PRF_FLAGGED(ch, PRF_NOREPEAT))
send_to_char("Sent.\r\n", ch);
else {
sprintf(buf2, "You send '%s' to %s.\r\n", buf, GET_NAME(vict));
send_to_char(buf2, ch);
}
}
/* take a string, and return an rnum.. used for goto, at, etc. -je 4/6/93 */
room_rnum find_target_room(struct char_data * ch, char *rawroomstr)
Last line is 143. As for the last error, I tried adding a } at the end of the
file, but it gave me a syntax error. I don't know what to do. I can't even
find the change I made that caused all this stuff to happen.
Thanks,
-JW
+------------------------------------------------------------+
| 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