Sistem Ekleme Videoları #1 Great Offline Shop

Bir sorum olucak. Videodaki gibi yaptıktan sonra mysql'de bir ayar falan tablo eklemek vs gerekiyor mu? Yok sa bu videodakileri yapmak yeterlimi?
 
Bir sorum olucak. Videodaki gibi yaptıktan sonra mysql'de bir ayar falan tablo eklemek vs gerekiyor mu? Yok sa bu videodakileri yapmak yeterlimi?
her videoda ne gerekiyorsa gösteriyorum ekleme yapmamışsam yapılmıyor olabilir videoyu çok hatırlamıyorum. sql varsa okutabilirsin.
 
Yes, by the shop offline


7012 eklentisini görüntüle


what is the problem i follow the video

///find in char.cpp

qw:
#ifdef SHOP_ONLY_ALLOWED_INDEX
        bool block = (shop_max > 0 ? (get_offline_shops_count() >= shop_max): false);
#else
        bool block = (get_offline_shops_count() >= shop_max);
#endif
        if (block)
        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SHOP_MAP_MAX"));
            return;
        }
    }


//is changed to

qw:
        bool block = false;

#ifdef SHOP_ONLY_ALLOWED_INDEX
        if (shop_max > 0)
        {
#else
        if (shop_max == 0)
            block = true;
        else {
#endif
            std::auto_ptr <SQLMsg> pkMsg(DBManager::instance().DirectQuery("SELECT map_index from player_shop WHERE channel=%d and status='OK' and map_index=%d", g_bChannel, GetMapIndex()));
            SQLResult* pRes = pkMsg->Get();
            if (pRes->uiNumRows >= shop_max)
                block = true;
        }
        if (block)
        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SHOP_MAP_MAX"));
            return;
        }
        }
 
Geri
Üst