Jump to content

attempt to index field '?' (a nil value)


kecskebeka

Recommended Posts

  Hy. What's wrong with that? 
1. LINE
How to fix attempt to index field '?' (a nil value) error? Thanx.

 if myFaction[getElementData(localPlayer, "char.factions")]["type"] then
        if (tonumber(myFaction[getMyFaction()]["type"] or 0) == 3) then
            if tonumber(getElementData(localPlayer, "inWarField")) then 
                if not (getTamadTerulet()) then
                    dxDrawText("Banda war indítása",55,size[2]+165+7*35,1,1,tocolor ( 255, 255, 255, 255 ),1.2,"default","left","top", true,true,true,true)
                    dxDrawRectangle(10,size[2]+160+7*35,panelS[1],30,tocolor(0,0,0,100))
                    if isInSlot(10,size[2]+160+7*35,panelS[1],30) then
                        dxDrawRectangle(10,size[2]+160+7*35,panelS[1],30,tocolor(34, 167, 240,100))
                    end    
                else
                    dxDrawText("Banda war indítása",55,size[2]+165+7*35,1,1,tocolor ( 100, 100, 100, 255 ),1.2,"default","left","top", true,true,true,true)
                    dxDrawRectangle(10,size[2]+160+7*35,panelS[1],30,tocolor(0,0,0,100))                        
                end
            else
                dxDrawText("Banda war indítása",55,size[2]+165+7*35,1,1,tocolor ( 100, 100, 100, 255 ),1.2,"default","left","top", true,true,true,true)
                dxDrawRectangle(10,size[2]+160+7*35,panelS[1],30,tocolor(0,0,0,100))            
            end
        end
    end

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...