Bvural41 1
Bvural41
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Almira2 1
Almira2
romegames 1
romegames
D 1
delimuratt
melankolıa18 1
melankolıa18
shrpnl 1
shrpnl
Fethi Polat 1
Fethi Polat
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
Best Studio 1
Best Studio
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

Cevaplandı 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
26d 4h
Reaksiyon Skoru
23
Altın Konu
0
TM Yaşı
6 Yıl 1 Ay 14 Gün
Başarım Puanı
78
Yaş
28
MmoLira
2,520
DevLira
3
Ticaret - 0%
0   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ 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

Son düzenleme:
Çözüm
Ticaret - 0%
0   0   0
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
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.
I sent you a message via the site's private messages.
 

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

Geri
Üst