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

[Data Store or I think] how can i get this 'for' loop going?

Asked by
Tedfat 10
8 years ago
miguild = GuildID[house2:GetAsync("Joined")]
house3 = house:GetOrderedDataStore("Members",miguild)
house4 = house:GetDataStore("Members",miguild)
script.Parent.GuildName.Text = miguild
            if  house3:GetSortedAsync(false, 50,1,10)  ~= nil then
                pages = house3:GetSortedAsync(false, 50,1,10) 
                data = pages:GetCurrentPage()
                print("datatroo")
                    if data ~= nil then
                        for k,v in pairs(data) do
                            print("Printing Members")

If you need more Ill give u more, But I just cant get the second to last line to run I tried to add anything and reword everything but It still doesn't work, so as a last attempt I came to you guys.

output: datatroo

Update: From tests, it skips this for loop and continues to other things

0
does house = game:DetService("DataStoreService")? TheDeadlyPanther 2460 — 8y
0
house = game:GetService("DataStoreService") house2 = house:GetDataStore(player.Name,"Players") Tedfat 10 — 8y

1 answer

Log in to vote
0
Answered by
Tedfat 10
8 years ago

OK So if you want to open

house:GetOrderedDataStore

then you also need to save with

house:GetOrderedDataStore

Note Both have "Ordered"

Ad

Answer this question