- Mesaj
- 376
- Çözümler
- 14
- Beğeni
- 101
- Puan
- 749
- Ticaret Puanı
- 0
1:
static const char* colorbuf[] = {"|cFFffa200|H|h[Ada Mapı]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
//int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->GetMapIndex() == 50?colorbuf[0]:ch->GetMapIndex() == 1?colorbuf[1]:ch->GetMapIndex() == 21?colorbuf[2]:ch->GetMapIndex() == 41?colorbuf[3]), ch->GetName(), buf);
Bağırma kodunda değişiklik yaptım normalde yorum satırı olan orijinali ben map indexine göre yazmasını istedim ama builtte sorun var ufak bir hatadan dolayı çalışmıyor yardımcı olabilecek?