Changing exp needed...

From: Corey Hoitsma (choitsma@netcom.com)
Date: 05/19/96


	Hello all:)

	I've just wrote about this a little bit ago..
	So I'm gonna add to it.. hope this helps me and you some so you can
	help me:)

I have this so far in structs.h:

   sh_int armor;        /* Internal -100..100, external -10..10 AC */
   int  gold;           /* Money carried                           */
   int  bank_gold;      /* Gold the char has in a bank account     */
   unsigned long int exp;            /* The experience of the player   */
   ^^ line #694
 

	struct title_type {
	   char *title_m;
	   char *title_f;
	   unsigned long int exp;
	   ^^ line #1019
	};

And everywhere that GET_EXP is called I have %lu.

And I STILL get all the warnings:

class.c:712: warning: integer constant out of range
class.c:712: warning: decimal constant is so large that it is unsigned
class.c:713: warning: integer constant out of range
class.c:713: warning: decimal constant is so large that it is unsigned

The exp numbers for these lines are:

  {"the Mage (98)", "the Mage (98)", 4829856768},
  {"the Mage (99)", "the Mage (99)", 5312842240},

Should I use a double?
If so, what do I use to display with sprintf? %f?

Maybe my numbers are too high.. but I can't really tell 'cause
the MUD changes them to negavtives, so it doesn't help to much:P

Thanks!

Corey Hoitsma                   AKA -= Myrddin =-
             choitsma@netcom.com
Tazmania			tazmania.ah.net 7000



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