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

From: Johan Dustler (Johan.Dustler@epk.ericsson.se)
Date: 03/01/97


> From: annbell@gpu.srv.ualberta.ca (Bellman)
> 
> Can someone tell me if there is anything wrong with this special procedure?
> I am a newbie. 
> 
> 
> SPECIAL(barney)
> {
>   ACMD(do_say)
                ^
You forgot a semicolon here.

> 
>   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)
                ^
And another one missing here.

>   default:
>     return (0);
>   }
> }  
> 
> 
> Mouchie

/Johan
+-----------------------------------------------------------+
| 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