Skip to content

Instantly share code, notes, and snippets.

@madclaws
Last active April 23, 2018 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madclaws/72e3e188dd740af19e23c9f84e105a92 to your computer and use it in GitHub Desktop.
Save madclaws/72e3e188dd740af19e23c9f84e105a92 to your computer and use it in GitHub Desktop.
lua module for writing records.
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