09 Apr 98 08:52, Darin McBride wrote to Anthony Tibbs:
DM> ModeratorWarning()
DM> {
DM> SmackUser();
DM> Say("Tsk, tsk, tsk.");
DM> SmackUserAgain();
DM> }
Hmmmm ... why the need for the two functions SmackUser() and
SmackUserAgain()? Couldn't the same be accomplished with the function
SmackUser() within a suitable loop which could also determine if the User has
been Smack(ed) sufficiently? Something along the lines:
while (UserState != SufficientSmacking)
{
SmackUser();
Say("Tsk, tsk, tsk.");
if (strcmp(UserSay(), "Okay enough already!!!") == 0)
UserState == SufficientSmacking;
}
Note the continued use of SmackUser() until he/she reaches a predetermined
state of SufficientSmacking. The "if" statement needs some modification
since I am not sure that a strcmp() is a suitable check but I think you get
the general idea.
--- Msged 4.30 beta
---------------
* Origin: ZOLTAN -> Ladysmith, BC (250) 245-7168 (1:351/255)
|