12-31-2013, 03:21 AM
Why won't this f****** code work? I don't find any problem.
Wheat code works but potato and carrot code not, why?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | if (job == "farmer" ) then if (BlockType == E_BLOCK_CROPS) then i1 = Pickups:Get(0) i2 = Pickups:Get(1) item1 = i1.m_ItemType item2 = i2.m_ItemType amount1 = i1.m_ItemCount if (i2 == nil ) then return false end if (item1 == E_ITEM_WHEAT) or (item2 == E_ITEM_WHEAT) then Coiny:Call( "GiveMoney" , PlayerDigger:GetName(), 10) return false elseif (item1 == E_ITEM_POTATO) or (item1 == E_ITEM_CARROT) then if (amount1 > 1) then result = amount1 * 5 Coiny:Call( "GiveMoney" , PlayerDigger:GetName(), result) return false end end end end |