Having problems
#1
Why won't this f****** code work? I don't find any problem.
        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
Wheat code works but potato and carrot code not, why?
Reply
Thanks given by:


Messages In This Thread
Having problems - by tonibm19 - 12-31-2013, 03:21 AM
RE: Having problems - by NiLSPACE - 12-31-2013, 03:24 AM
RE: Having problems - by tonibm19 - 12-31-2013, 03:26 AM
RE: Having problems - by xoft - 12-31-2013, 03:28 AM
RE: Having problems - by tonibm19 - 12-31-2013, 04:17 AM
RE: Having problems - by NiLSPACE - 12-31-2013, 04:27 AM
RE: Having problems - by tonibm19 - 12-31-2013, 04:36 AM
RE: Having problems - by NiLSPACE - 12-31-2013, 04:38 AM
RE: Having problems - by tonibm19 - 12-31-2013, 04:42 AM



Users browsing this thread: 1 Guest(s)