Karuzo Posted July 22, 2014 Posted July 22, 2014 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)
Dealman Posted July 22, 2014 Posted July 22, 2014 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.
Karuzo Posted July 22, 2014 Author Posted July 22, 2014 function createHouse_func(player, _, preis, int) addCommandHandler("createhouse",createHouse_func)
Dealman Posted July 22, 2014 Posted July 22, 2014 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.
Karuzo Posted July 22, 2014 Author Posted July 22, 2014 Whoa. That tonumber helped. Thank you very much.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now