color errors

Posted by MasterJay on Mon 04 Oct 2004 01:04 AM — 4 posts, 15,719 views.

#0
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
Australia Forum Administrator #1
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.
#2
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?
USA #3
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.