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
➜ Remort Problems
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Jynxdarkspell
USA (16 posts) Bio
|
| Date
| Tue 06 Mar 2007 07:38 AM (UTC) |
| Message
| Damn, and I'd thought it would be at least a week.....
Anyways, I'm back again, and I've had alot of success installing various other snippets to my mud in progress. I'm running across a problem with the remort snippet by Xerves, and it appears to be in only one line.....
load_char_obj(d, capitalize( oldch->name ), TRUE );
in remort.c
when I try to compile, it gives me an error that says:
remort.c:184: error: too few arguments to 'load_char_obj'
of course the line above was line 184, but I'm trying to figure out the missing argument.......
any answers on that one folks? | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #1 on Tue 06 Mar 2007 11:53 AM (UTC) |
| Message
| | Find the load_char_obj function and look at the function header. Compare the arguments to the function call. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Tue 06 Mar 2007 07:45 PM (UTC) |
| Message
| With situations like this you need to inspect the function prototype. Looking in mud.h will usually help, or grep for it like I did:
$ grep load_char_obj *.h
mud.h:bool load_char_obj args( ( DESCRIPTOR_DATA * d, char *name, bool preload, bool copyover ) );
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Jynxdarkspell
USA (16 posts) Bio
|
| Date
| Reply #3 on Tue 06 Mar 2007 07:46 PM (UTC) |
| Message
| Lol, thanks Zeno.
All it needed as an extra TRUE to the line and it compiled perfectly, tested it and it works like it's supposed to :) | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #4 on Tue 06 Mar 2007 07:47 PM (UTC) |
| Message
| | Are you sure you needed a TRUE and not a FALSE? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Jynxdarkspell
USA (16 posts) Bio
|
| Date
| Reply #5 on Tue 06 Mar 2007 07:47 PM (UTC) |
| Message
| And thank you to, nick :) That's exactly what i did to find what I was missing :)
| | Top |
|
| Posted by
| Jynxdarkspell
USA (16 posts) Bio
|
| Date
| Reply #6 on Tue 06 Mar 2007 07:48 PM (UTC) |
| Message
| | Well, it looked like it worked fine to me. It sent the message correctly, the char remorted to the desired class, the desired level, all seemes okay to me | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #7 on Tue 06 Mar 2007 08:06 PM (UTC) |
| Message
| | I believe (if you have the same prototype as Nick posted) that making it TRUE indicates a copyover is in progress. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Jynxdarkspell
USA (16 posts) Bio
|
| Date
| Reply #8 on Wed 07 Mar 2007 05:14 PM (UTC) |
| Message
| Thanks Zeno.
Now that I read the args there, that seems to be exactly what it seems. I'll change that to false and retest it. | | 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.
24,920 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top