mmo plugin help wanted
#8
This surely is something very obvious but I just don't get it

Code:
[10:59:23] LUA: Plugins/mmo/storage_sqlite.lua:59: attempt to index field 'DB' (a nil value)
[10:59:23] Stack trace:
[10:59:23]   Plugins/mmo/storage_sqlite.lua(59): ExecuteCommand
[10:59:23]   Plugins/mmo/main.lua(379): get_stats_initialize
[10:59:23]   Plugins/mmo/main.lua(399): get_stats
[10:59:23]   Plugins/mmo/main.lua(113): save_player
[10:59:23]   Plugins/mmo/main.lua(81): (no name)
[10:59:23] Stack trace end
[10:59:23] Error in plugin mmo calling function <callback>()


Code:
function get_stats_initialize(Player)
    local Success, ErrorMsg = cSQLiteStorage:ExecuteCommand("initialize_player",
    {
        player_name = Player:GetName()
    },
    function(stats_sql)
        stats[1][Player:GetName()] = stats_sql
    end
)
    return stats
end
Reply
Thanks given by:


Messages In This Thread
mmo plugin help wanted - by danny9484 - 03-09-2016, 11:18 PM
RE: mmo plugin help wanted - by NiLSPACE - 03-09-2016, 11:49 PM
RE: mmo plugin help wanted - by danny9484 - 03-09-2016, 11:54 PM
RE: mmo plugin help wanted - by NiLSPACE - 03-10-2016, 12:12 AM
RE: mmo plugin help wanted - by NiLSPACE - 03-10-2016, 06:16 AM
RE: mmo plugin help wanted - by danny9484 - 03-10-2016, 06:43 PM
RE: mmo plugin help wanted - by NiLSPACE - 03-10-2016, 07:06 PM
RE: mmo plugin help wanted - by danny9484 - 03-10-2016, 08:04 PM
RE: mmo plugin help wanted - by NiLSPACE - 03-10-2016, 08:28 PM
RE: mmo plugin help wanted - by danny9484 - 03-10-2016, 08:34 PM
RE: mmo plugin help wanted - by NiLSPACE - 03-10-2016, 08:42 PM
RE: mmo plugin help wanted - by danny9484 - 03-10-2016, 08:45 PM
RE: mmo plugin help wanted - by NiLSPACE - 03-10-2016, 08:53 PM
RE: mmo plugin help wanted - by danny9484 - 03-10-2016, 08:55 PM
RE: mmo plugin help wanted - by danny9484 - 03-10-2016, 10:49 PM
RE: mmo plugin help wanted - by danny9484 - 03-10-2016, 11:58 PM
RE: mmo plugin help wanted - by danny9484 - 03-11-2016, 01:01 AM



Users browsing this thread: 7 Guest(s)