Turbanik Posted February 25, 2020 Share Posted February 25, 2020 (edited) [NEED HELP] local Layouts = GLOBAL.require("map/layouts").Layoutslocal StaticLayout = GLOBAL.require("map/static_layout")Layouts["PigPiece"] = StaticLayout.Get("map/static_layouts/PigPiece")AddRoomPreInit("Forest", function(room) if not room.contents.countstaticlayouts then room.contents.countstaticlayouts = {} end room.contents.countstaticlayouts["PigPiece"] = 1end) Error: Malformed number near 1end Edited February 25, 2020 by Turbanik Link to comment Share on other sites More sharing options...
CarlZalph Posted February 25, 2020 Share Posted February 25, 2020 In your instance, you have '1end' which is not valid and should be '1 end'. I'd also recommend formatting things better in the code so that these types of glue errors won't happen, but that's on you if you want to do it. Link to comment Share on other sites More sharing options...
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