- Katılım
- 6 Kas 2021
- Mesajlar
- 2,868
- Tepkime puanı
- 4,320
- Puanları
- 113
- Yaş
- 31
- Konum
- Türkiye
- Dc
- fatihbulut
Kod:
#ifdef ENABLE_CHEQUE_SYSTEM
case POINT_CHEQUE:
{
const int64_t nTotalCheque = static_cast<int64_t>(GetCheque()) + static_cast<int64_t>(amount);
if (CHEQUE_MAX <= nTotalCheque)
{
sys_err("[OVERFLOW_CHEQUE] OriCheque %d AddedCheque %d id %u Name %s ", GetCheque(), amount, GetPlayerID(), GetName());
LogManager::instance().CharLog(this, GetCheque() + amount, "OVERFLOW_CHEQUE", "");
return;
}
SetCheque(GetCheque() + amount);
val = GetCheque();
}
break;
[HASH=3]#endif[/HASH]
Kod:
#ifdef ENABLE_CHEQUE_SYSTEM
case POINT_CHEQUE:
{
const int64_t nTotalCheque = static_cast<int64_t>(GetCheque()) + static_cast<int64_t>(amount);
if (amount > 0 && nTotalCheque > CHEQUE_MAX)
{
sys_err("[OVERFLOW_CHEQUE] OriCheque %lld AddedCheque %lld id %u Name %s ",
static_cast<long long>(GetCheque()),
static_cast<long long>(amount),
GetPlayerID(),
GetName());
LogManager::instance().CharLog(this, nTotalCheque, "OVERFLOW_CHEQUE", "");
return;
}
SetCheque(nTotalCheque);
val = GetCheque();
}
break;
[HASH=3]#endif[/HASH]