【发布时间】:2019-05-10 16:11:51
【问题描述】:
您好,我的 Datastre 总是在获取错误时遇到问题
获取 ErreurArgument 2 缺失或无
我的代码在 pastbin https://pastebin.com/tPvBtHuR
local succes , err = pcall(function() -- Pcall
local key = ("user_" .. Player.userId)
local Data = PlayerData:UpdateAsync(key)
if Data == nil then
Data = DefaultData
end
PlayerData:SetAsync(key) -- Save
end)
if succes then
print ('Succes'..succes)
end
if err then
print ('Erreur'..err)
end
end
【问题讨论】:
-
不清楚你在问什么。请在发布问题之前阅读此内容:stackoverflow.com/help/how-to-ask
-
(为了邮件的可读性,在邮件标签后面添加一个空格,如
'Erreur '..err。) -
好的,下次我读来问问题,所以我的问题很简单,希望在错误时留出空间希望任何人都可以回答我的问题,哈哈,我现在在这个脚本上的错误是什么 Erreur Argument 2 missing或无