[Plugin] Homes Plugin!?
#8
You're not putting anything into the a_List variable anywhere. The getResult() function should add an item into it. Most likely like this (note the use of the nrows() function instead of DBExec() ):
local theResult = {}
DB:nrows(
  "SELECT * FROM " .. PluginName .. " WHERE Player = \"" .. player .. "\"",
  function getResult(a_RowValues)
    -- add the returned row to our result table:
    table.insert(theResult, a_RowValues)
  end
)
return theResult

This will return the table as an array of dictionaries:
theResult = { {col1 = val1A, col2 = val2A}, {col1 = val1B, col2 = val2B}, {col1 = val1C, col2 = val2C}, ...}

EDIT: No, sorry, this code won't work either.
Reply
Thanks given by:


Messages In This Thread
[Plugin] Homes Plugin!? - by nouseforname - 11-25-2014, 05:20 AM
RE: [Plugin] Homes Plugin!? - by NiLSPACE - 11-25-2014, 05:22 AM
RE: [Plugin] Homes Plugin!? - by sphinxc0re - 11-25-2014, 05:46 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-25-2014, 06:23 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-25-2014, 06:28 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-25-2014, 07:18 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-26-2014, 04:27 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-26-2014, 06:05 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-26-2014, 06:09 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-26-2014, 06:15 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-27-2014, 01:25 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-26-2014, 06:12 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-27-2014, 02:56 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-27-2014, 03:04 AM
[Plugin] Homes RC1 - by nouseforname - 11-27-2014, 05:44 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-27-2014, 06:27 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-27-2014, 01:41 PM
RE: [Plugin] Homes Plugin!? - by xoft - 11-27-2014, 06:44 AM
RE: [Plugin] Homes Plugin!? - by bearbin - 11-27-2014, 05:44 PM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-27-2014, 05:47 PM
RE: [Plugin] Homes Plugin!? - by xoft - 11-27-2014, 07:43 PM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-28-2014, 01:52 AM
RE: [Plugin] Homes Plugin!? - by xoft - 11-28-2014, 02:58 AM
RE: [Plugin] Homes Plugin!? - by nouseforname - 11-28-2014, 03:33 AM



Users browsing this thread: 5 Guest(s)