Jump to content

Unpack table expected got nil problem


Karuzo

Recommended Posts

Posted

Hey guys,

i'm workin on a gamemode atm but i got stuck at the house system.

So my problem is that i'm unpacking the interior positions but unpack returns me an error that he expected a table but got nil.

So here's my script:

InteriorPosi = {  
    [1] = {223.0538482666, 1287.3552246094, 1082.140625}, 
} 
--and so on  
  
local x, y, z = unpack(InteriorPosi[int]) 
local houseIntPickup = createPickup(x, y, z, 3, 1318, 100) 

Posted

And where is int defined?

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

Int is never properly defined as an integer. You must be using the command wrong. Are you converting it from a string to a number as well?

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

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...