Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ speciifier issues
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Proto-6
Canada (26 posts) Bio
|
| Date
| Wed 05 Mar 2003 11:32 PM (UTC) |
| Message
| 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 | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Thu 06 Mar 2003 05:33 AM (UTC) |
| Message
| | Sounds like there is more to it than that, but anyway, the %lf would be used inside a printf statement. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Proto-6
Canada (26 posts) Bio
|
| Date
| Reply #2 on Thu 06 Mar 2003 07:03 AM (UTC) |
| Message
| | 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 :) | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,725 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top