[Plugin] CuboidPlus r4 - Building/Landscaping/Terraforming
#27
Revision 440 should no longer crash with your plugin. However, the plugin does not work either.

These are the most important things you should change
Code:
... local CuboidPlusPlugin = {} // delete this CuboidPlusPlugin.__index = CuboidPlusPlugin // delete this ... function CuboidPlusPlugin:new() // Delete all this local t = {} setmetatable(t, CuboidPlusPlugin) local w = Lua__cPlugin:new() tolua.setpeer(w, t) w:tolua__set_instance(w) return w end ... function Initialize() // Change to function Initialize( Plugin ) // this ... function CuboidPlusPlugin:OnPlayerJoin( Player ) // Change to function OnPlayerJoin( Player ) // this ... function CuboidPlusPlugin:OnBlockPlace( PacketData, Player ) // Change to function OnBlockPlace( PacketData, Player ) // this ... function CuboidPlusPlugin:OnBlockDig( PacketData, Player ) // Change to function OnBlockDig( PacketData, Player ) // this ... Plugin = CuboidPlusPlugin:new() // Delete these 3 lines cRoot:Get():GetPluginManager():AddPlugin( Plugin ) cRoot:Get():GetServer():SendMessage("CuboidPlus Reloaded.")

After that try to fix the errors you get, should be really easy to do
Reply
Thanks given by:


Messages In This Thread
RE: [Plugin] CuboidPlus r2 - by Luthrandel - 11-09-2011, 04:17 PM
RE: [Plugin] CuboidPlus r2 - by ThuGie - 11-10-2011, 11:45 PM
RE: [Plugin] CuboidPlus r2 - by Luthrandel - 11-11-2011, 10:42 AM
RE: [Plugin] CuboidPlus r2 - by rs2k - 11-11-2011, 01:08 AM
RE: [Plugin] CuboidPlus r3 - Building/Landscaping/Terraforming - by FakeTruth - 03-29-2012, 04:16 AM



Users browsing this thread: 2 Guest(s)