*Problemă/Întrebare: Detin sistemul long long (fara limita yang) ,intrebare este ca pe scriptul la lingouri ete amount ma poate ajuta sa l trec cumva pe long long?
Tipologie server:
*Resursă folosită:
*ServerFiles utilizat:
*Syserr:
Poză:
*Detalii suplimentare: Scriptul : switch (item->GetVnum())
{
case 80003:
case 80004:
case 80005:
case 80006:
case 80007:
{
static const int sGold[5] =
{
10000000, ///< 80003 10kk
50000000, ///< 80004 50kk
100000000, ///< 80005 100kk
250000000, ///< 80006 250kk
500000000 ///< 80007 500kk
};
if (IsOpenSafebox() || GetExchange() || GetMyShop() || IsCubeOpen())
{
ChatPacket(CHAT_TYPE_INFO, "Nu poti folosi lingouri in timp ce negociezi.");
return false;
}
const int amount = sGold[item->GetVnum() - 80003];
if ((GOLD_MAX - amount) <= GetGold())
{
ChatPacket(CHAT_TYPE_INFO, "Nu poti detine mai mult de 2kkk Yang.");
return false;
}
item->SetCount(item->GetCount() - 1);
PointChange(POINT_GOLD, amount, true);
}
break;
default:
break;
}
Lingouri din sursa micuta problema
// const int amount = sGold[item->GetVnum() - 80003];
// if ((GOLD_MAX - amount) <= GetGold())
// {
// ChatPacket(CHAT_TYPE_INFO, "Nu poti detine mai mult de 2kkk Yang.");
// return false;
//}
Asa nu?
// if ((GOLD_MAX - amount) <= GetGold())
// {
// ChatPacket(CHAT_TYPE_INFO, "Nu poti detine mai mult de 2kkk Yang.");
// return false;
//}
Asa nu?
- Ionuţ M.
-

- Mesaje: 2680
- Membru din: 28 Noi 2015, 22:02
- Aprecieri: 170
- Mulţumiri: 12723
- Rezolvări prob.: 2
- Discord: Copiază ID
- Contact:
Mutat in Probleme Rezolvate.
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 36 vizitatori



de