Cuberite Forum

Full Version: mmo plugin help wanted
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How strange. Could you perhaps commit all your code to github, perhaps in a different branch.
didn't saw 2. page I just commited it in my dev branch
Oh, right. I don't have a singleton in Login. In the initialize function try something like
g_Storage = cSQLiteStorage:new()

Then you can call it using g_Storage:ExecuteCommand(...)
yep thats it many thanks
uhh still have problems
current code is in my dev branch

Code:
[13:43:35] LUA: Plugins/mmo/storage_sqlite.lua:66: calling 'bind_names' on bad self (attempt to use closed sqlite virtual machine) [13:43:35] Stack trace: [13:43:35]   [C](-1): bind_names [13:43:35]   Plugins/mmo/storage_sqlite.lua(66): ExecuteCommand [13:43:35]   Plugins/mmo/main.lua(382): get_stats_initialize [13:43:35]   Plugins/mmo/main.lua(400): get_stats [13:43:35]   Plugins/mmo/main.lua(407): checkifexist [13:43:35]   Plugins/mmo/main.lua(350): (no name) [13:43:35] Stack trace end [13:43:35] Error in plugin mmo calling function <callback>()

your old sql functions where way better understandable xD
ok ok I fixed it wrong ; in the sql statement
I just got your geyser spell working xD
Pages: 1 2