Ecstacy
Mothafuckaaa
Hey,
I'm trying to use the for function but I can't quite get something simple to work
.
Could someone make this test script work,
because it gives this error
script
I'm trying to use the for function but I can't quite get something simple to work
Could someone make this test script work,
because it gives this error
Code:
(luaDoPlayerAddItemEx) Item not found
script
Code:
local itemTable = {
{5785}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local p = getPlayerPremiumDays(cid)
if (item.itemid == 1740 and item.actionid == 100) then
for _, i in ipairs(itemTable) do
return doPlayerGiveItem(cid, i, 1)
end
end
return true
end