Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!
i have this problem:
Kod:cmd_general.cpp:187: error: 'BLOCK_DUELLO_MODE' was not declared in this scope cmd_general.cpp: In function 'void do_normalduelloatmakistiyorumben(CHARACTER*, const char*, int, int)': cmd_general.cpp:274: error: 'SE_DUELLO1' was not declared in this scope cmd_general.cpp:275: error: 'SE_DUELLO2' was not declared in this scope cmd_general.cpp: In function 'void do_potsuzduelloatmakistiyorumben(CHARACTER*, const char*, int, int)': cmd_general.cpp:342: error: 'SE_DUELLO1' was not declared in this scope cmd_general.cpp:343: error: 'SE_DUELLO2' was not declared in this scope
Somebody can help me?
Kod:
void CHARACTER::SetBlockMode(BYTE bFlag)
Kod:
void CHARACTER::SetBlockMode(BYTE bFlag)
{
m_pointsInstant.bBlockMode = bFlag;
ChatPacket(CHAT_TYPE_COMMAND, "setblockmode %d", m_pointsInstant.bBlockMode);
SetQuestFlag("game_option.block_exchange", bFlag & BLOCK_EXCHANGE ? 1 : 0);
SetQuestFlag("game_option.block_party_invite", bFlag & BLOCK_PARTY_INVITE ? 1 : 0);
SetQuestFlag("game_option.block_guild_invite", bFlag & BLOCK_GUILD_INVITE ? 1 : 0);
SetQuestFlag("game_option.block_whisper", bFlag & BLOCK_WHISPER ? 1 : 0);
SetQuestFlag("game_option.block_messenger_invite", bFlag & BLOCK_MESSENGER_INVITE ? 1 : 0);
SetQuestFlag("game_option.block_party_request", bFlag & BLOCK_PARTY_REQUEST ? 1 : 0);//bonus
SetQuestFlag("game_option.block_duello_mode", bFlag & BLOCK_DUELLO_MODE ? 1 : 0);
SetQuestFlag("game_option.block_point_exp", bFlag & BLOCK_POINT_EXP ? 1 : 0);
// SetQuestFlag("game_option.block_view_bonus", bFlag & BLOCK_VIEW_BONUS ? 1 : 0);
}
Kod Bloğunu değiştir..
char.h aç
Kod:
enum EBlockAction
Kod:
enum EBlockAction
{
BLOCK_EXCHANGE = (1 << 0),
BLOCK_PARTY_INVITE = (1 << 1),
BLOCK_GUILD_INVITE = (1 << 2),
BLOCK_WHISPER = (1 << 3),
BLOCK_MESSENGER_INVITE = (1 << 4),
BLOCK_PARTY_REQUEST = (1 << 5),//bonus
BLOCK_DUELLO_MODE = (1 << 6),
BLOCK_POINT_EXP = (1 << 7),
// BLOCK_VIEW_BONUS = (1 << 7),
};
Kod Bloğunu değiştir..
Up
thanks for fast replay.
Now i have this error:
thanks for fast replay.
Now i have this error:
Kod:
cmd_general.cpp:274: error: 'SE_DUELLO1' was not declared in this scope
cmd_general.cpp:275: error: 'SE_DUELLO2' was not declared in this scope
cmd_general.cpp: In function 'void do_potsuzduelloatmakistiyorumben(CHARACTER*, const char*, int, int)':
cmd_general.cpp:342: error: 'SE_DUELLO1' was not declared in this scope
cmd_general.cpp:343: error: 'SE_DUELLO2' was not declared in this scope
Up
thanks for fast replay.
Now i have this error:
Kod:cmd_general.cpp:274: error: 'SE_DUELLO1' was not declared in this scope cmd_general.cpp:275: error: 'SE_DUELLO2' was not declared in this scope cmd_general.cpp: In function 'void do_potsuzduelloatmakistiyorumben(CHARACTER*, const char*, int, int)': cmd_general.cpp:342: error: 'SE_DUELLO1' was not declared in this scope cmd_general.cpp:343: error: 'SE_DUELLO2' was not declared in this scope
cmd_general.cpp aç
ACMD(do_pvp) arat
Kod:
ACMD(do_pvp)
{
if (ch->GetArena() != NULL || CArenaManager::instance().IsArenaMap(ch->GetMapIndex()) == true)
{
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("´ë·ÃÀå¿¡¼ »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù."));
return;
}
char arg1[256];
one_argument(argument, arg1, sizeof(arg1));
DWORD vid = 0;
str_to_number(vid, arg1);
LPCHARACTER pkVictim = CHARACTER_MANAGER::instance().Find(vid);
if (!pkVictim)
return;
if (pkVictim->IsNPC())
return;
if (pkVictim->IsBlockMode(BLOCK_DUELLO_MODE))
{
ch->ChatPacket(CHAT_TYPE_INFO, ("Karsidaki kisi duelloyu engelledi."));
return;
}
if (pkVictim->GetArena() != NULL)
{
pkVictim->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»ó´ë¹æÀÌ ´ë·ÃÁßÀÔ´Ï´Ù."));
return;
}
CPVPManager::instance().Insert(ch, pkVictim);
}
Kod Bloğunu değiştir.
Unfortunately the same mistake
Kod:
cmd_general.cpp: In function 'void do_normalduelloatmakistiyorumben(CHARACTER*, const char*, int, int)':
cmd_general.cpp:274: error: 'SE_DUELLO1' was not declared in this scope
cmd_general.cpp:275: error: 'SE_DUELLO2' was not declared in this scope
cmd_general.cpp: In function 'void do_potsuzduelloatmakistiyorumben(CHARACTER*, const char*, int, int)':
cmd_general.cpp:342: error: 'SE_DUELLO1' was not declared in this scope
cmd_general.cpp:343: error: 'SE_DUELLO2' was not declared in this scope
- Durum
- Üzgünüz bu konu cevaplar için kapatılmıştır...
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 12
- Görüntüleme
- 1K
- Cevaplar
- 15
- Görüntüleme
- 804
- Cevaplar
- 37
- Görüntüleme
- 2K
Altın Konu
[C++] Prevent Ride in War (PvP) Maps
- Cevaplar
- 7
- Görüntüleme
- 2K
