[Cross-posted from Developer Support in case any Lua experts know this.]
Now that OpenFeint has been updated, we can implement the new OF syntax:
openfeint.setHighScore( { leaderboardID=“abc123”, score=82342, displayText=“82,342 pts” } )
But the useful OpenFeint wrapper code:
safeopenfeint.setHighScore( lbID, points )
–which calls to…
function setHighScore( leaderboardId, score )
if not isOFSupported then return end
openfeint.setHighScore(leaderboardId, score)
end
uses individual arguments. ***To make it accept a table, how would you write the call in main.lua?***
safeopenfeint.setHighScore( { leaderboardID=lbID, score=points} )
and then in the safeopenfeint module:
function setHighScore( {} )
if not isOFSupported then return end
openfeint.setHighScore({})
end
or do you have to supply values in the table that’s in the module? [import]uid: 1560 topic_id: 3563 reply_id: 303563[/import]