Re: [newbie] AFK snippet

From: Mathew Earle Reuther (graymere@zipcon.net)
Date: 06/26/02


He's saying that the last one needs no comma, while all the rest do need
them.  So if your code looks like this originally:

(act.other.c around like 870 or so)

{"HolyLight mode off.\r\n",
"HolyLight mode on.\r\n"},
{"Nameserver_is_slow changed to NO; IP addresses will now be resolved.\r\n",
"Nameserver_is_slow changed to YES; sitenames will no longer be resolved.\r\n"},
{"Autoexits disabled.\r\n",
"Autoexits enabled.\r\n"},
{"Will no longer track through doors.\r\n",
"Will now track through doors.\r\n"}
};


if (IS_NPC(ch))
return;


It should now look like this:

{"HolyLight mode off.\r\n",
"HolyLight mode on.\r\n"},
{"Nameserver_is_slow changed to NO; IP addresses will now be
resolved.\r\n",
"Nameserver_is_slow changed to YES; sitenames will no longer be
resolved.\r\n"},
{"Autoexits disabled.\r\n",
"Autoexits enabled.\r\n"},
{"Will no longer track through doors.\r\n",
"Will now track through doors.\r\n"},
{"AFK flag is now off.\r\n",
"AFK flag is now on.\r\n"}


};

You can see that what he was getting at is that in the longer list of all
those on/off messages, the very last one needs no comma after it, but all
others do.  You may check to see if there's a single comma missing higher
up, and if the very last comma is not there, as it should not be.

If your code does have all the appropriate commas and no extras it might
be valuable for you to copy the relevant section of code as well as the
compiler errors to your email.  Perhaps someone will have an idea.

-Mathew

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT