i want to add this [Hidden Content]
with Team function
const char * ColoredEmpireNames[4] = {"0", "|cFFFF0000[Shinshoo]|r", "|cFFFFFF00[Chunjo]|r", "|cFF0080FF[Jinno]|r",};
const char * ColoredTeamName = "|cFFFFC700[Team]|r";
len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s",
ch->GetGMLevel() != GM_PLAYER ? ColoredTeamName : ColoredEmpireNames[ch->GetEmpire()], ch->GetName(), buf);
but now I have this error:
root@host:/usr/src/Sw2/mainline_sg/Srcs/Server/game/src # gmake
compile input_main.cpp
input_main.cpp: In member function 'void FEmpireChatPacket::operator()(DESC*)':
input_main.cpp:563: warning: comparison is always true due to limited range of data type
input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
input_main.cpp:743: error: 'chatbuf_global' was not declared in this scope
input_main.cpp:783: warning: comparison is always true due to limited range of data type
gmake: *** [OBJDIR/input_main.o] Error 1