At 11:15 AM 1/9/98 +0000, you wrote:
>Ok first of thanx George and the rest of you who sent me flames and code
>fix (after I read the messages I slapped my head many times!!)
Here comes some more, because it's my turn now :-)
>
>But I'm still getting wierd errors, like when I type complist I get my
>score also?
See below for this answer.
>and it wont save (I have samedi's pfiles in bpl12)?
>Heres the complist & comptalk (also not working) commands:
^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- See far below
[#include's snipped]
>struct descriptor_data *d;
>struct char_data *victim;
>
>
>ACMD(do_complist)
>{
> extern struct clan_data clan[];
> int i;
>
// We must clear out buf before we start adding to the end of it!!!
*buf = '\0';
> for (i = 0; i < MAX_CLAN; i++) {
> sprintf(buf + strlen(buf), "[%d] %s Company\r\n", i,
> clan[i].clan_name);
> }
> sprintf(buf, "%sThanxs for useing Company Directorys.\r\nUser: %s\r\n",
> buf, GET_NAME(ch));
> sprintf(buf, "%sDisconnected.....\r\n", buf);
> send_to_char(buf, ch);
>}
>
[ beginning of comptalk snipped]
> else
> sprintf(buf, "$n tells the company,\r\n '%s'\r\n", argument);
> act(mess, FALSE, ch, 0, 0, TO_CLAN | TO_SLEEP);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
did you check to make sure that you have TO_CLAN implemented
in the act() code?
if not I would recommend implementing it soon enough :-)
>
> return;
^^^^^^^ That is really not needed, because you are at the end
of the function. (unless you are returning a value, you don't need that)
>}
>
>Any ideas? I'll realse this code as soon as I can get it all working :)
>
See above. :-D
Code On
Akuma the Raging Coder
+------------------------------------------------------------+
| "The poets talk about love, but what I talk about is DOOM, |
| because in the end, DOOM is all that counts." - |
| Alex Machine/George Stark/Stephen King, The Dark Half |
| "Nothing is IMPOSSIBLE, Just IMPROBABLE" |
| "Easier Said Than Done, But Better Done Than Said..." |
+------------------------------------------------------------+
+------------------------------------------------------------+
| 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