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
➜ color errors
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| MasterJay
(23 posts) Bio
|
| Date
| Mon 04 Oct 2004 01:04 AM (UTC) |
| Message
| I'm trying to add colors to my mud like the FAQ says
and i keep getting a
comm.c:2446: error:redefinition of 'send_to_char_color'
comm.c:2431: error:'send_to_char_color' previously defined here
comm.c:2552: error:redefiniton of 'send_to_pager_color'
comm.c:2530: error:'send_to_pager_color' previously defined here
all i did was add the
#define send_to_char send_to_char_color
#define send_to_pager send_to_pager_color
to the very end of the mud.h file, and i changed the text saying 'send_to_char_color' and 'send_to_pager_color' in the comm.c to 'send_to_char' and 'send_to_pager'
the FAQ said to "comment out the two functions
send_to_char() and send_to_pager()" ..i think i did that | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 06 Oct 2004 06:48 AM (UTC) |
| Message
| | You think you did? Either they are commented out or not, sounds like not since you are getting the duplicate function messages. Make sure you recompile everything. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| MasterJay
(23 posts) Bio
|
| Date
| Reply #2 on Wed 06 Oct 2004 10:24 AM (UTC) |
| Message
| I figured out what i did wrong. I didnt comment out those functions, thats what my stupid error was
and how can i stop my colors from bleeding all over? is there somewhere in the source that tells what command does that? | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #3 on Wed 06 Oct 2004 04:05 PM (UTC) |
| Message
| | Depends. You are using Smaug 1.4a right? Then not really. SmaugFUSS has a color reset symbol, &D. You'd have to add a &w at the end what lines are bleeding. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | 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.
14,974 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top