Motodai (トーク | 投稿記録)
編集の要約なし
Motodai (トーク | 投稿記録)
編集の要約なし
15行目: 15行目:
     dataStore['Pocochaアカウント'] = t_name
     dataStore['Pocochaアカウント'] = t_name


     local result = mw.smw.set( dataStore )
     local ok, result = pcall(mw.smw.set, dataStore )


     if result == true then
if not ok then
        -- everything ok
return '<span class="error">SMW Lua error: ' .. tostring(result) .. '</span>'
    else
end
     if result ~= true then
         -- error message to be found in result.error
         -- error message to be found in result.error
        return '<span class="error">SMW set error: ' .. tostring(result.error) .. '</span>'
     end
     end
end
end