Jump to content

Attempt to Get 'length of field' ? ( a nil value )


Recommended Posts

I get this when i add a new shop here is the script error is line 22

function createShopKeeper(x,y,z,interior,dimension,id,shoptype,rotation, skin) 
    if not skin then 
        skin = 0 
         
        if shoptype == 3 then 
            skin = 168 
            -- needs differences for burgershot etc 
            if interior == 5 then 
                skin = 155 
            elseif interior == 9 then 
                skin = 167 
            elseif interior == 10 then 
                skin = 205 
            elseif dimension == 1355 then 
                skin = 171 
            end 
            -- interior 17 = donut shop 
        else 
            -- clothes, interior 5 = victim 
            -- clothes, interior 15 = binco 
            -- clothes, interior 18 = zip 
            skin = skins[shoptype][math.random( 1, #skins[shoptype] )] 
        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...