- 5 Kas 2020
- 118
- 9
- Çevrimiçi zamanı
- 13h 45m
- 18
- Best answers
- 0
- Oyuncu
- Metin2, CS:GO

C#:
Güncelleme:
#include "../libgame/include/grid.h"
// Aratılır.
#include "../../libgame/include/grid.h"
//Şeklinde değiştirilir.
Güncelleme 2:
#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;
}
}
// Aratılır. {char.cpp}
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;
}
}
// Şeklinde değiştirilir.