Karuzo Posted July 22, 2014 Share 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) Link to comment
Karuzo Posted July 22, 2014 Author Share Posted July 22, 2014 function createHouse_func(player, _, preis, int) addCommandHandler("createhouse",createHouse_func) Link to comment
Dealman Posted July 22, 2014 Share 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? Link to comment
Karuzo Posted July 22, 2014 Author Share Posted July 22, 2014 Whoa. That tonumber helped. Thank you very much. Link to comment
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