local CloudService = game:GetService("CloudService")
local Level = CloudService:GetOrderDataCloud("LevelAA")
Level:CleanOrderDataList()
local LeveBB= CloudService:GetOrderDataCloud("LevelBB")
LeveBB:SetValue("1000068432","无意义",40)
LeveBB:SetValue("1000038432","无意义",70)
print("Hello LeveBB!")
LeveBB:SetValueAsync("1000018432","无意义",50, function (code)
print("code is ", code)
end)
LeveBB:SetValueAsync("1000028432","无意义",60, function (code)
print("code is ", code)
end)
LeveBB:SetValueAsync("1000048432","无意义",70, function (code)
print("code is ", code)
end)
local getVal = LeveBB:GetValue("1000068432","无意义")
print("getVal is!", getVal)
local newGetVal = LeveBB:GetValueAsync("1000068432","无意义", function (code, val)
print("code is, getVal is ", code, val)
end)
print("Hello LeveBB!")
local tableA = LeveBB:GetOrderDataIndex(false, 2)
for k, v in pairs(tableA) do
print("TABLE A key is value is", v.key, v.value)
end
print("Hello LeveBB!")
local tableB = LeveBB:GetOrderDataValueArea(false, 2, 4)
for k, v in pairs(tableB) do
print("TABLE B key is value is", v.key, v.value)
end