Re: Werewolfs :)

From: Ron Poulton (ron@res.com)
Date: 09/03/95


Try "parse_race('l');".  "l" is a pointer, and you wish to specify a 
character integer which woiuld be 'l'.

> I have a small problem, I am putting werewolfs on my mud, I have 
> everything setup. cept the command that changes them from human to were 
> form doesn't work :(
> here is my command
> (this is basic mind you)
> --- snip ----
> ACMD(do_change)
> {
>   int parse_race(char arg);
> 
>   if (GET_RACE(ch) == RACE_WHUMAN) {
>     GET_RACE(ch) == parse_race("l");
>   } else
>     GET_RACE(ch) == parse_race("w");
> }
> 
> ---snip---
> and these are the compiling errors I get:
> ---snip---
> make ../bin/Thryne
> gcc -c -g -Wall  act.were.c
> act.other.c: In function `do_change':
> act.other.c:1166: warning: passing arg 1 of `parse_race' makes integer from pointer without a cast
> act.other.c:1164: warning: value computed is not used
> act.other.c:1166: warning: passing arg 1 of `parse_race' makes integer from pointer without a cast
> act.other.c:1166: warning: value computed is not used
> ---snip---
> and no its not cause I made a nrew .c file, I have made many new .c 
> files, removed alot too :)
> Anyone know what I did wrong? I know it has to do with my parse_race, or 
> the way I used it
> if I use RACE_PWHUMAN or RACE_WHUMAN instead of the 'w' or 'l' the 
> compile erros are that same minus these 2:
> act.other.c:1166: warning: passing arg 1 of `parse_race' makes integer from pointer without a cast
> act.other.c:1166: warning: passing arg 1 of `parse_race' makes integer from pointer without a cast
> 
> 



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