Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!
Kod:
item_attribute.cpp: In member function 'void CItem::AddNewAttr(BYTE, BYTE, BYTE)':
item_attribute.cpp:151: error: redeclaration of 'const TItemAttrTable& r'
item_attribute.cpp:145: error: 'const TItemAttrTable& r' previously declared here
item_attribute.cpp:149: warning: unused variable 'i'
C++:
#ifdef WJ_ELDER_ATTRIBUTE_SYSTEM
void CItem::AddNewAttr(BYTE index, BYTE bApply, BYTE bLevel)
{
if (HasApply(bApply))
return;
if (bLevel <= 0)
return;
int iAttributeSet = GetAttributeSetIndex();
const TItemAttrTable & r = g_map_itemAttr[bApply];
if (!r.bMaxLevelBySet[iAttributeSet])
return;
int i = GetAttributeCount();
const TItemAttrTable & r = g_map_itemAttr[bApply];
long lVal = r.lValues[MIN(4, bLevel - 1)];
if (lVal)
SetAttribute(index, bApply, lVal);
}
#endif
