Hikayeler

Reklam vermek için turkmmo@gmail.com

Alper2 Battle Pass Sistemi cmd_general.cpp syserr

Keremiya07

Level 3
Telefon Numarası Onaylanmış Üye TC Kimlik Numarası Doğrulanmış Üye
TM Üye
Üye
Katılım
23 Nis 2020
Konular
10
Mesajlar
110
Online süresi
26g 17626s
Reaksiyon Skoru
23
Altın Konu
0
Başarım Puanı
73
Yaş
27
TM Yaşı
5 Yıl 12 Ay 3 Gün
MmoLira
2,505
DevLira
3

Metin2 EP, Valorant VP dahil tüm oyun ürünlerini en uygun fiyatlarla bulabilir, Item ve Karakterlerinizi hızlıca satabilirsiniz. HEMEN TIKLA!

Eklediğim Sistem https://forum.turkmmo.com/konu/3778894-alpar2-battle-pass-sistemi/

Kullandığım Files https://forum.turkmmo.com/konu/3812585-legendy-v2-alt-yapi-server-files-guncellendi/

Aldığım hata https://prnt.sc/GOg88iIysODE

cmd_general.cpp: In function 'void open_battlepass(LPCHARACTER, const char*, int , int)':
cmd_general.cpp:2550:93: error: 'class CHARACTER' has no member named 'IsCombOpe n'; did you mean 'IsCubeOpen'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~
IsCubeOpen
cmd_general.cpp:2550:113: error: 'class CHARACTER' has no member named 'IsOpenMa ilBox'; did you mean 'IsOpenSafebox'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~~~~
IsOpenSafebox
cmd_general.cpp:2550:136: error: 'class CHARACTER' has no member named 'isSashOp ened'; did you mean 'isAcceOpened'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~~~
isAcceOpened
cmd_general.cpp:2550:162: error: 'class CHARACTER' has no member named 'isSashOp ened'; did you mean 'isAcceOpened'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~~~
isAcceOpened
cmd_general.cpp:2550:189: error: 'class CHARACTER' has no member named 'isChange LookOpened'; did you mean 'isAcceOpened'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~~~~~~~~~
isAcceOpened
cmd_general.cpp: In function 'void final_reward_battlepass(LPCHARACTER, const ch ar*, int, int)':
cmd_general.cpp:2591:93: error: 'class CHARACTER' has no member named 'IsCombOpe n'; did you mean 'IsCubeOpen'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~
IsCubeOpen
cmd_general.cpp:2591:113: error: 'class CHARACTER' has no member named 'IsOpenMa ilBox'; did you mean 'IsOpenSafebox'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~~~~
IsOpenSafebox
cmd_general.cpp:2591:136: error: 'class CHARACTER' has no member named 'isSashOp ened'; did you mean 'isAcceOpened'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~~~
isAcceOpened
cmd_general.cpp:2591:162: error: 'class CHARACTER' has no member named 'isSashOp ened'; did you mean 'isAcceOpened'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~~~
isAcceOpened
cmd_general.cpp:2591:189: error: 'class CHARACTER' has no member named 'isChange LookOpened'; did you mean 'isAcceOpened'?
if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeO pen() || ch->IsCombOpen() || ch->IsOpenMailBox() || ch->isSashOpened(true) || ch ->isSashOpened(false) || ch->isChangeLookOpened())
^~~~~~~~~~~~~~~~~~
isAcceOpened
gmake: *** [Makefile:182: .obj/cmd_general.o] Error 1
compiling db.cpp
gmake: *** Waiting for unfinished jobs....

cmd_general.cpp dosyasını da bırakıyorum eklediğim kodlara bakmanız için

sistem ekleme anlatımında sadece en alta ekleyin yazıyordu ayrıyeten başka bir işlemde bulunmadım

yardımcı olabilecek arkadaşlara şimdiden teşekkür ederim <3
 

Ekli dosyalar

  • cmd_general.cpp
    59.9 KB · Görüntüleme: 0
Son düzenleme:
Çözüm
The error is very simple, it asks you to put the windows of the systems that you have, for example the scarf, what type do you have, do you have isSashOpened or isAcceOpened, and he also gave you the solution. If the error is with isSashOpened, he issued you the solution, which is to replace it with isAcceOpened. In general, replace this programming block with the old one you have and try, the problem will be solved.

Also, there is something that if you could solve, I would be grateful if you told me the solution as well. I could not change the season time to start a new season. If you could set a new time, I hope you tell me how you set a new time. Thank you.

Kod:
#ifdef ENABLE_BATTLE_PASS
ACMD(open_battlepass)
{
    if...
The error is very simple, it asks you to put the windows of the systems that you have, for example the scarf, what type do you have, do you have isSashOpened or isAcceOpened, and he also gave you the solution. If the error is with isSashOpened, he issued you the solution, which is to replace it with isAcceOpened. In general, replace this programming block with the old one you have and try, the problem will be solved.

Also, there is something that if you could solve, I would be grateful if you told me the solution as well. I could not change the season time to start a new season. If you could set a new time, I hope you tell me how you set a new time. Thank you.

Kod:
#ifdef ENABLE_BATTLE_PASS
ACMD(open_battlepass)
{
    if (ch->v_counts.empty())
        return;

    if (ch->missions_bp.empty())
        return;

    if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeOpen() || ch->isAcceOpened(true) || ch->isAcceOpened(false))
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "<BP> Lutfen aktif pencereleri kapatiniz");
        return;
    }

    time_t cur_Time = time(NULL);
    struct tm vKey = *localtime(&cur_Time);

    int month = vKey.tm_mon;

    if (month != ch->iMonthBattlePass)
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "Zaman gecmis!");
        return;
    }

    for (int i = 0; i<ch->missions_bp.size(); ++i)
    {
        ch->ChatPacket(CHAT_TYPE_COMMAND, "missions_bp %d %d %d %d", i, ch->missions_bp[i].type, ch->missions_bp[i].vnum, ch->missions_bp[i].count);
        ch->ChatPacket(CHAT_TYPE_COMMAND, "info_missions_bp %d %d %d %s", i, ch->v_counts[i].count, ch->v_counts[i].status, ch->rewards_bp[i].name);
        ch->ChatPacket(CHAT_TYPE_COMMAND, "rewards_missions_bp %d %d %d %d %d %d %d", i, ch->rewards_bp[i].vnum1, ch->rewards_bp[i].vnum2, ch->rewards_bp[i].vnum3, ch->rewards_bp[i].count1, ch->rewards_bp[i].count2, ch->rewards_bp[i].count3);
    }

    ch->ChatPacket(CHAT_TYPE_COMMAND, "size_missions_bp %d ", ch->missions_bp.size());
    ch->ChatPacket(CHAT_TYPE_COMMAND, "final_reward %d %d %d %d %d %d", ch->final_rewards[0].f_vnum1, ch->final_rewards[0].f_vnum2, ch->final_rewards[0].f_vnum3, ch->final_rewards[0].f_count1, ch->final_rewards[0].f_count2, ch->final_rewards[0].f_count3);
    ch->ChatPacket(CHAT_TYPE_COMMAND, "show_battlepass");

}

ACMD(final_reward_battlepass)
{
    if (ch->v_counts.empty())
        return;

    if (ch->missions_bp.empty())
        return;

    if (ch->v_counts[0].status == 2)
        return;

    if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeOpen() || ch->isAcceOpened(true) || ch->isAcceOpened(false))
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "<BP> Lutfen aktif pencereleri kapatiniz");
        return;
    }

    time_t cur_Time = time(NULL);
    struct tm vKey = *localtime(&cur_Time);

    int month = vKey.tm_mon;

    if (month != ch->iMonthBattlePass)
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "Zaman gecmis!");
        return;
    }

    for (int i = 0; i<ch->missions_bp.size(); ++i)
    {
        if (ch->missions_bp[i].count != ch->v_counts[i].count)
        {
            ch->ChatPacket(CHAT_TYPE_INFO, "Gorev daha bitmemis, goreve devam edebilirsiniz!");
            return;
        }
    }

    ch->FinalRewardBattlePass();
}
#endif
 
Çözüm
The error is very simple, it asks you to put the windows of the systems that you have, for example the scarf, what type do you have, do you have isSashOpened or isAcceOpened, and he also gave you the solution. If the error is with isSashOpened, he issued you the solution, which is to replace it with isAcceOpened. In general, replace this programming block with the old one you have and try, the problem will be solved.

Also, there is something that if you could solve, I would be grateful if you told me the solution as well. I could not change the season time to start a new season. If you could set a new time, I hope you tell me how you set a new time. Thank you.

Kod:
#ifdef ENABLE_BATTLE_PASS
ACMD(open_battlepass)
{
    if (ch->v_counts.empty())
        return;

    if (ch->missions_bp.empty())
        return;

    if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeOpen() || ch->isAcceOpened(true) || ch->isAcceOpened(false))
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "<BP> Lutfen aktif pencereleri kapatiniz");
        return;
    }

    time_t cur_Time = time(NULL);
    struct tm vKey = *localtime(&cur_Time);

    int month = vKey.tm_mon;

    if (month != ch->iMonthBattlePass)
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "Zaman gecmis!");
        return;
    }

    for (int i = 0; i<ch->missions_bp.size(); ++i)
    {
        ch->ChatPacket(CHAT_TYPE_COMMAND, "missions_bp %d %d %d %d", i, ch->missions_bp[i].type, ch->missions_bp[i].vnum, ch->missions_bp[i].count);
        ch->ChatPacket(CHAT_TYPE_COMMAND, "info_missions_bp %d %d %d %s", i, ch->v_counts[i].count, ch->v_counts[i].status, ch->rewards_bp[i].name);
        ch->ChatPacket(CHAT_TYPE_COMMAND, "rewards_missions_bp %d %d %d %d %d %d %d", i, ch->rewards_bp[i].vnum1, ch->rewards_bp[i].vnum2, ch->rewards_bp[i].vnum3, ch->rewards_bp[i].count1, ch->rewards_bp[i].count2, ch->rewards_bp[i].count3);
    }

    ch->ChatPacket(CHAT_TYPE_COMMAND, "size_missions_bp %d ", ch->missions_bp.size());
    ch->ChatPacket(CHAT_TYPE_COMMAND, "final_reward %d %d %d %d %d %d", ch->final_rewards[0].f_vnum1, ch->final_rewards[0].f_vnum2, ch->final_rewards[0].f_vnum3, ch->final_rewards[0].f_count1, ch->final_rewards[0].f_count2, ch->final_rewards[0].f_count3);
    ch->ChatPacket(CHAT_TYPE_COMMAND, "show_battlepass");

}

ACMD(final_reward_battlepass)
{
    if (ch->v_counts.empty())
        return;

    if (ch->missions_bp.empty())
        return;

    if (ch->v_counts[0].status == 2)
        return;

    if (ch->GetExchange() || ch->GetMyShop() || ch->IsOpenSafebox() || ch->IsCubeOpen() || ch->isAcceOpened(true) || ch->isAcceOpened(false))
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "<BP> Lutfen aktif pencereleri kapatiniz");
        return;
    }

    time_t cur_Time = time(NULL);
    struct tm vKey = *localtime(&cur_Time);

    int month = vKey.tm_mon;

    if (month != ch->iMonthBattlePass)
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "Zaman gecmis!");
        return;
    }

    for (int i = 0; i<ch->missions_bp.size(); ++i)
    {
        if (ch->missions_bp[i].count != ch->v_counts[i].count)
        {
            ch->ChatPacket(CHAT_TYPE_INFO, "Gorev daha bitmemis, goreve devam edebilirsiniz!");
            return;
        }
    }

    ch->FinalRewardBattlePass();
}
#endif
The fix you suggested worked, thank you, I added it to the system without any problems. I can help you if you write me privately.
 

Ekli dosyalar

  • Screenshot_1.png
    Screenshot_1.png
    2 MB · Görüntüleme: 0

Şu an konuyu görüntüleyenler (Toplam : 1, Üye: 0, Misafir: 1)

Geri
Üst