Last active
April 23, 2018 08:10
-
-
Save madclaws/72e3e188dd740af19e23c9f84e105a92 to your computer and use it in GitHub Desktop.
lua module for writing records.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local nk=require("nakama") | |
--writing record of total players | |
function writeTotalPlayers(total_player) | |
local new_record={ | |
{Bucket="LL",Collection="GamePlay",Record="Common",Value={total=total_player}} | |
} | |
nk.storage_write(new_record) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment