speciifier issues

Posted by Proto-6 on Wed 05 Mar 2003 11:32 PM — 3 posts, 13,332 views.

Canada #0
ok I got some code from someone and I have been trying to install it but I get hung up real bad on this one part it is a specifier called %lf but I dotn know where to put it I was wundering if you know where you would put specifiers I would ask him but I'v bugged him alot and He has his own mud to work on well any help would be nice allso hear is the code he gave me to put in



To get a really high powerlevel, you can use the 'long double' variable. Inside the mud.h file look for the structure char_data:
struct char_data
Inside that structure put the following:
long double pl;

Also in mud.h locate the following:
int fread_number args( ( FILE *fp ) );
Below it put the following:
long double fread_double args( ( FILE *fp ) );

Also in mud.h locate the following:
int get_door args( ( char *arg ) );
Below it put the following:
char * ld_punct args( ( long double number ) );

Now in order to access that variable, you must use this speciifier -> %Lf
Australia Forum Administrator #1
Sounds like there is more to it than that, but anyway, the %lf would be used inside a printf statement.
Canada #2
actualy the version I have is verry old aparently other coders have managed to make it all in one change isted of all this but I want to figue that out myself after I get this part woking :) oo and thanx that gives me somthing to refrence in my C book :)