Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[Datastore] Data skiping a function????

Asked by 9 years ago
local NilLogs={}
    local CData=DS:GetOrderedDataStore('TestGravityNilLogs'):GetSortedAsync(false, 10)
    local COutput=CData:GetCurrentPage()


    for _,b in pairs(COutput) do  -- The script is skiping this table.. what??? why??/ ;-;
           local plr=b.key
            local num=b.value
            table.insert(NilLogs,{Num=num,Player=plr})
   end
    Output(5,Plr,'Showing Top 10 Data\'s','Really blue',function() end)

    for _,v in pairs(NilLogs) do
        Output(20,Plr,'Name : '..v.Player,'White',function()
            Dismiss(Plr)
            Output(20,Plr,'Num : '..v.Num,'White',function() end)
            Output(20,Plr,'Name : '..v.Player,'White',function() end)
            Output(20,Plr,'Dismiss','Lime green',function() Dismiss(Plr) end)
        end)
end

Answer this question