05-14-2017, 01:07 AM
05-14-2017, 01:27 AM
You need to explicitly log the individual values:
local lastBedPos = Player:GetLastBedPos() LOG(string.format("%s Bed: [%d, %d, %d]", Player:GetName(), lastBedPos.x, lastBedPos.y, lastBedPos.z))(I prefer using string.format to concatenation, but either should work)
05-14-2017, 01:38 AM
Thanks xoft!
How i can show into Objects in Lua? Can i debug my code?
How i can show into Objects in Lua? Can i debug my code?
05-14-2017, 03:55 AM
You can debug Cuberite plugins using the ZeroBrane Studio, there's an article about setting it all up: https://api.cuberite.org/SettingUpZeroBrane.html
There's no built-in way to display Lua objects, basically because a Lua table can contain stuff that it cannot represent reasonably (functions, loops etc.)
There's no built-in way to display Lua objects, basically because a Lua table can contain stuff that it cannot represent reasonably (functions, loops etc.)