|
| 14 Feb 2016 11:58 PM |
If I'm correct, in this code:
ODS:SetAsync("RecurringNightmare", 0)
RecurringNightmare is the key and 0 is the value. If this is the case, then please correct me: else consider the following..
I return this key to a localscript with a remote function and it receives the key correctly. Why does it error when I try to reference key.value? Do I need to return the value too? |
|
|
| Report Abuse |
|
|
12103net
|
  |
| Joined: 08 Jul 2013 |
| Total Posts: 350 |
|
|
| 15 Feb 2016 12:01 AM |
| does it say it's nil? try making a table and returning that |
|
|
| Report Abuse |
|
|
|
| 15 Feb 2016 12:13 AM |
it does say it's nil but it is in a table. keys is the name of the table and key is the key returned (in this case, "RecurringNightmare")
function ReturnUser.OnServerInvoke(player, key) print 'server invoked' for i,v in pairs(keys) do if v == key then -- return key return ODS:GetAsync(key) end end end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|