It looks like you're new here. If you want to get involved, click one of these buttons!
mydata.FBInstant.startGameAsync(function() if mydata.FBInstantAPI == true then mydata.FBInstant.getLeaderboardAsync("my_leaderboard", function(result,error) result:setScoreAsync(430,{level=1},function(self,result,entry) if result then print("score ok",entry) for key,val in pairs(entry.entry) do print(key,val) local text = TextField.new(mydata.font1, "0") stage:addChild(text) text:setPosition(20, 20) text:setText(key.." "..tostring(val)) end end end) end) end end) |
Comments
Likes: Apollo14, sam_m
Now for what I'm sure is a very stupid question. How do I put variables in the string?
As in this works - '{race: "elf", level: 3}'
I'd also like to make this work - {level: mydata.levelID}'
Likes: MoKaLux, sam_m, plicatibu
Likes: MoKaLux