Re: [code][question][newbie]special procedure...

From: claywar (claywar@cetlink.net)
Date: 03/01/97


> Can someone tell me if there is anything wrong with this special procedure?
> I am a newbie. 
> 
> 
> SPECIAL(barney)
> {
>   ACMD(do_say)
> 
>   if (cmd)
>     return (0);
> 
>   switch (number(0,60)){
>   case 0:
>     do_say(ch, "Hi! Welcome to uhhh, errr, oh yeah!!! Welcome to Mouchie
> Mania!", 0, 0);
>     return (1);
>   case 1: 
>     do_say(ch, "I can't beleive it's not butter!?!?", 0, 0);
>     return (1);
>   case 2:
>     do_say(ch, "What is that *BURP* doggie doin' here?!", 0, 0);
>     return (1);
>   case 3:
>     do_say(ch, "What are you looking at?!", 0, 0);
>     return (1)
>   default:
>     return (0);
>   }
> }  

Insert "break;" at the end of each case.

cw!

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
|    Or send 'info circle' to majordomo@cspo.queensu.ca     |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST