Hermes
dziwki kola gramy w lola
Hi there!
I noticed that scripts using getItemAttack(uid), getItemDefense(uid) etc. stopped working as usual.
Function:
returns an error, where getItemArmor(uid) is nil. Where uid is itemEx.uid, and shouldn't be nil.
I have made second test. Using executeLua script (by Colandus):
15:27 Running: doPlayerSendCancel(cid, getItemArmor(getPlayerSlotItem(cid, CONST_SLOT_ARMOR))):end:
15:27 [string "doPlayerSendCancel(cid, getItemArmor(getPla..."]:1: attempt to call global 'getItemArmor' (a nil value)
it really returned nil. Let's make second test. getItemWeight(uid[, precise]) always worked.
15:30 Running: doPlayerSendCancel(cid, tostring(getItemWeight(getPlayerSlotItem(cid, CONST_SLOT_ARMOR)))):end:
--player receives cancel message: false
Then really something is wrong. Maybe it's a bug? : p
PS. I am using 3493 revision, from privateSVN.
I noticed that scripts using getItemAttack(uid), getItemDefense(uid) etc. stopped working as usual.
Function:
Code:
function isArmor(uid)
uid = uid or 0
if getItemArmor(uid) > 0 and getItemAttack(uid) == 0 and getItemDefense(uid) == 0 and getItemWeaponType(uid) == 0 then
return true
end
return false
end
returns an error, where getItemArmor(uid) is nil. Where uid is itemEx.uid, and shouldn't be nil.
I have made second test. Using executeLua script (by Colandus):
15:27 Running: doPlayerSendCancel(cid, getItemArmor(getPlayerSlotItem(cid, CONST_SLOT_ARMOR))):end:
15:27 [string "doPlayerSendCancel(cid, getItemArmor(getPla..."]:1: attempt to call global 'getItemArmor' (a nil value)
it really returned nil. Let's make second test. getItemWeight(uid[, precise]) always worked.
15:30 Running: doPlayerSendCancel(cid, tostring(getItemWeight(getPlayerSlotItem(cid, CONST_SLOT_ARMOR)))):end:
--player receives cancel message: false
Then really something is wrong. Maybe it's a bug? : p
PS. I am using 3493 revision, from privateSVN.