Im having some trouble implementing game center in a game im developing. Particularly, when adding a highScore to the leader boards. I have defined a global variable in the main for using the gameNetwork API
gameNetwork = require "gameNetwork"
The login with game center is fine, the problem comes when i set a highscore. Im doing this,
[code]
local function requestCallback(event)
playerName = event.data[0].playerID
playerRank = event.data[6].rank
native.showAlert( “Title”,"PlayerID: “…playerName…” Rank: "… playerRank, { “OK” } )
end
gameNetwork.request( “setHighScore”,
{
localPlayerScore = { category=“LeaderBoardID”, value= tonumber(finalScore) },
listener=requestCallback
}) [/code]
The requestCallback function is never called, i don’t know what im doing wrong.
Thanks
[import]uid: 118815 topic_id: 25739 reply_id: 325739[/import]
