Leader board not submitting time score

I already get signed in in the main file which I did not post on here because it seems correct as it logs me in and says welcome. I also am able to see the leader board but it always shows my score as 0 I am very confused why it is not posting the score to the leader board any help will be grateful.

Below is the relevant code that I am using minus the sign in because that all works fine. I also printed my variables to make sure there were actually correct and they are in the console.

local gameNetwork = require "gameNetwork" gameNetwork.init("google") local leaderboardId = "my ID is here" timeDisplay = string.format( "%02d:%02d", myData.prevMinute, myData.prevSeconds ) local function submitScoreListener(event) gameNetwork.request("setHighScore", { localPlayerScore = { category = leaderboardId, -- Id of the leaderboard to submit the score into value = tonumber(timeDisplay) -- The score to submit } }) print(timeDisplay) print(leaderboardId) end local scoreSubmitButton = widget.newButton { top = 160, left = 500, width = width, height = size, label = "Submit Score", fontSize = buttonTextSize, onRelease = submitScoreListener, } local function showLeaderboardListener(event) gameNetwork.show("leaderboards") -- Shows all the leaderboards. end local showLeaderboardButton = widget.newButton { top = 200, left = 500, width = width, height = size, label = "Show Leaderboard", fontSize = buttonTextSize, onRelease = showLeaderboardListener, }

Hi @keithholler13,

Can you provide some specific examples of what this “time score” might look like, after it is formatted and before it’s passed to the gameNetwork.request() function? Please be very specific on this point and provide real-world examples.

Thanks,

Brent

I actually did figure out the solution it was because I was using a custom timer that was not in miliseconds it was actally custom and look like 00:00 so google play services didnt understand it. Once I changed it to a value that was a raw number it worked perfectly so the problem was on my end. Thank you though for caring.

Hi @keithholler13,

Can you provide some specific examples of what this “time score” might look like, after it is formatted and before it’s passed to the gameNetwork.request() function? Please be very specific on this point and provide real-world examples.

Thanks,

Brent

I actually did figure out the solution it was because I was using a custom timer that was not in miliseconds it was actally custom and look like 00:00 so google play services didnt understand it. Once I changed it to a value that was a raw number it worked perfectly so the problem was on my end. Thank you though for caring.