Re: [newbie] # -> $

From: Ebon Mists (mud@quake.cloudnet.com)
Date: 10/13/96


> 
> the line:
> do_advance(victim, ((int)GET_LEVEL(ch) - 2), 0, 0);
> 
> yields:
> warning: passing arg 2 of `do_advance' makes pointer from integer
> without a case
> 
> looking in do_advance, it looks like it wants that second argument to
> be a string and not a number (char *level = buf2), so my question is,
> how to convert that number in my line above to a string that do_advance
> wants? :)

sprintf(buf, "%d", GET_LEVEL(ch) - 2);
do_advance(victim, buf, 0, 0);
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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