Snoozy Posted January 17, 2011 Share Posted January 17, 2011 I'm wondering how to go about a house system in LUA, I really hope theres a way as easy as in PAWN with enums What I'm meaning about how to on about it is how I should do for the storing while the server is running Now the server information is in MySQL tho I still need to have some "housedata[houseid][something]" in LUA to work with else it will just become a pain, so I'm wondering if anybody got a suggestion on what I could do as the best solution for such? Link to comment
norby89 Posted January 17, 2011 Share Posted January 17, 2011 In fact that's quite easy to do: http://www.lua.org/pil/2.5.html tl;dr version: houseData = {} houseData[houseID] = {} houseData[houseID][something] = cake Link to comment
Snoozy Posted January 17, 2011 Author Share Posted January 17, 2011 Doh forgot all about 2.5 table storing -.- Link to comment
Scooby Posted January 18, 2011 Share Posted January 18, 2011 there are already a few housing systems on the mta site, > community > resources (search for 'house') maybe it would be easier to convert one of these to suit your needs. Link to comment
Snoozy Posted January 18, 2011 Author Share Posted January 18, 2011 Nah I'm all about making it myself, this way I learn everything from bottom and everything will be a lot easier in the end. Plus my project is far different then any other here I personally suspect it to be so I'm better off doing my own customized scriptings 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