iam bussy on my 1st script ever but i keep having this problem
dous anyone know how i can solve this without losing my functions?
this is the error i get when i right click the item
and this is my script
dous anyone know how i can solve this without losing my functions?
this is the error i get when i right click the item
Code:
data/actions/scripts/Equiptment.lua:3: attempt to call upvalue 'item' (a number value)
[07/09/2010 17:36:21] stack traceback:
[07/09/2010 17:36:21] data/actions/scripts/Equiptment.lua:3: in function <data/actions/scripts/Equiptment.lua:2>
and this is my script
Code:
local item = 2457
function onUse (cid, itemid, frompos, topos)
if item (cid,666 ,1)== true then
doPlayerMoveItem (cid, 666 ,1)
end
return true
end[/CODE