Ok< Ive been working on making passwords setable (because if someone gets
hacked I dont want them to lose their character), but whenever I try and
compile I always get this error.
act.wizard.c: In function `perform_set':
act.wizard.c:2589: `is_file' undeclared (first use in this function)
act.wizard.c:2589: (Each undeclared identifier is reported only once
act.wizard.c:2589: for each function it appears in.)
act.wizard.c:2590: warning: `return' with no value, in function returning
non-void
act.wizard.c:2593: warning: `return' with no value, in function returning
non-void
act.wizard.c:2595: `tmp_store' undeclared (first use in this function)
and the is_file part is already defined in do_set, and the tmp_store I
dunno what could be wrong with that, well anyway here is the code.
case 45:
if (!is_file)
return;
if (GET_LEVEL(vict) >= LVL_ADMIN) {
send_to_char("You cannot change that.\r\n", ch);
return;
}
strncpy(tmp_store.pwd, CRYPT(val_arg, tmp_store.name),
MAX_PWD_LENGTH);
tmp_store.pwd[MAX_PWD_LENGTH] = '\0';
sprintf(buf, "Password changed to '%s'.", val_arg);
break;
--------------------------------------------------------------------------
|Matt Roach - owner of OnyxMUD | "I dont have bugs... just |
|And Coder/Builder of Quaratine | randomly created features!" |
|matt@shiva.ml.org quinn@mud.comsys.net| |
|quinn@match.org | |
--------------------------------------------------------------------------
+------------------------------------------------------------+
| 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