I have such code:
[lua]-----------------------------------------------------------------------------------------
– main.lua
– Your code here
local gameNetwork = require “gameNetwork”
local of_product_key = “xxx” – here, in my code is correct product key
local of_product_secret = “xxx” – here, in my code is correct product secret
local of_app_id = “xxx” – here, in my code is correct application client id
local display_name = “Your App Name”
gameNetwork.init(“openfeint”, of_product_key, of_product_secret, display_name, of_app_id)
local punkty = 0
local przycisk10 = display.newImage(“10.png”)
przycisk10.x = math.floor(display.contentWidth / 2)
przycisk10.y = 100
local przycisk100 = display.newImage(“100.png”)
przycisk100.x = math.floor(display.contentWidth / 2)
przycisk100.y = 200
local przycisk200 = display.newImage(“200.png”)
przycisk200.x = math.floor(display.contentWidth / 2)
przycisk200.y = 300
local przyciskOf = display.newImage(“of.png”)
przyciskOf.x = math.floor(display.contentWidth / 2)
przyciskOf.y = 400
local przyciskPlus = display.newImage(“plus.png”)
przyciskPlus.x = 32
przyciskPlus.y = 32
local textPts = display.newText("Punkty: " … punkty, 100, 0, nil, 14)
local function tap10(event)
gameNetwork.request(“unlockAchievement”, “1670622”)
end
local function tap100(event)
gameNetwork.request(“unlockAchievement”, “1670632”)
end
local function tap200(event)
gameNetwork.request(“unlockAchievement”, “1670642”)
end
local function tapOf(event)
gameNetwork.show(“achievements”)
end
local function tap_plus(event)
punkty = punkty + 1
textPts.text = "Punkty: " … punkty
textPts.x = 100
gameNetwork.request( “setHighScore”, { leaderboardID=“1169867”, score=punkty, displayText="Punkty: " … punkty } )
end
przycisk10:addEventListener(“tap”, tap10)
przycisk100:addEventListener(“tap”, tap100)
przycisk200:addEventListener(“tap”, tap200)
przyciskOf:addEventListener(“tap”, tapOf)
przyciskPlus:addEventListener(“tap”, tap_plus)[/lua]
And when i click on the button ‘OF’ i see the OpenFeint window, but there are no achievements. How see the achievements window of openFeint?
I have created 3 achevements on openFeint website (for developers) but i can’t see them on my iPad… [import]uid: 145275 topic_id: 26397 reply_id: 326397[/import]