OpenFeint highscores

I just want to start out by saying thank-you all for the help that you gave me so far!

I have some problems posting up the highscore… I have been using peach pellen’s tutorials and they are proving to be very helpful! I got everything to work except for posting up the highscores…
Here is some code

 local onDeviceGO=true  
 if string.sub(system.pathForFile("Icon.png", system.ResourceDirectory),1,6)=='/Users' then  
 onDeviceGO=false  
 end  
  
 lbID = "123456" -- i am using my real leaderboard id, just for a subsitute for the forum!  
  
  
 function setHighScore( lbID, points )  
 if onDeviceGO then  
 openfeint.setHighScore( 123456, \_G.time) --Edited ID here for you ;)  
 else  
 print("highscore called")  
 end  
 end  
 timerGO = timer.performWithDelay(2000, setHighScore, 1)  

The global variable _G. time shows how much time has passed since the game has started, and i want that to be posted up to the leader board… and i have been using my test user on open feint.
[import]uid: 24708 topic_id: 14243 reply_id: 314243[/import]

Hey there,

I’m not sure why this isn’t working, I built an app using almost identical code only a few days ago.

Also, you left your ID in one spot above, because it appears twice - I’ll edit that out for you in a moment.

Just to make sure - have you added yourself as “Test User” in your openfeint account? If not your scores wont be submitted.

Peach :slight_smile: [import]uid: 52491 topic_id: 14243 reply_id: 52650[/import]

I think i got the problem, thank-you for editing that out for me! I had problem with the leader board ID. [import]uid: 24708 topic_id: 14243 reply_id: 52670[/import]

Oh, hehe - yeah, that would do it :wink:

No worries on the edit.

Peach :slight_smile:

PS - Any more OF issues update this thread, I’m subscribed so will get a notification. [import]uid: 52491 topic_id: 14243 reply_id: 52726[/import]

Oh ok Thank-You, do you know the status of iads, and if it is possible to use them? [import]uid: 24708 topic_id: 14243 reply_id: 52731[/import]

It is not currently, no - however inMobi is available for iOS ads now :slight_smile:

See “Ads” here; http://developer.anscamobile.com/resources/apis

Peach :slight_smile: [import]uid: 52491 topic_id: 14243 reply_id: 52850[/import]