Nabend ich bräuchte etwas Hilfe
Der Fehler in Vbox:
Bitte melden Sie sich an, um diesen Link zu sehen.
Code: Z. 745-801
- [..] //---
- char chatbuf_global[CHAT_MAX_LEN + 1];
- #if defined(ENABLE_GLOBAL_CHAT) // FLAG IMAGES SYSTEM
- const char* kingdoms[3] = {"[1] ","[2] ","[3] "};
- if(ch->GetEmpire() > 0 && ch->GetEmpire() == 1 or ch->GetEmpire() == 2 or ch->GetEmpire() == 3 ) {
- int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s%s",kingdoms[ch->GetEmpire()-1], chatbuf);
- }
- else {
- int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s", chatbuf);
- }
- #endif
- [..] // ----
- TPacketGGShout p;
- p.bHeader = HEADER_GG_SHOUT;
- p.bEmpire = ch->GetEmpire();
- strlcpy(p.szText, chatbuf_global, sizeof(p.szText));
- P2P_MANAGER::instance().Send(&p, sizeof(TPacketGGShout));
- SendShout(chatbuf_global, ch->GetEmpire());
- return (iExtraLen);
- }
- const char* kingdoms[3] = {"|cFFff0000|H|h[Shinsoo]|cFFa7FFD4|H|h","|cFFFFFF00|H|h[Chunjo]|cFFA7FFD4|H|h","|cFF0080FF|H|h[Jinno]|cFFA7FFD4|H|h"};
- char chatbuf_global[CHAT_MAX_LEN + 1];
- int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s %s",kingdoms[ch->GetEmpire()-1], chatbuf);
- TPacketGGShout p;
- p.bHeader = HEADER_GG_SHOUT;
- p.bEmpire = ch->GetEmpire();
- strlcpy(p.szText, chatbuf_global, sizeof(p.szText));
- P2P_MANAGER::instance().Send(&p, sizeof(TPacketGGShout));
- SendShout(chatbuf_global, ch->GetEmpire());
- return (iExtraLen);
- }
- TPacketGCChat pack_chat;
- pack_chat.header = HEADER_GC_CHAT;
- pack_chat.size = sizeof(TPacketGCChat) + len;
- pack_chat.type = pinfo->type;
- pack_chat.id = ch->GetVID();
- switch (pinfo->type)