Jump to content

Recommended Posts

i want to add this https://metin2dev.org/board/index.php?/topic/884-cglobal-chat/&page=2

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

Link to comment
https://metin2.dev/topic/9536-global-chat/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.