gameNetwork.unlockAchievement() not working on Android Windows

Hi guys,

I'm not sure if I'm doing something wrong, but I'm calling this code
gameNetwork.unlockAchievement(1105932) but every time I call this function I get this error:

attempt to call field 'unlockAchievement' [a nil value]

Does anyone know how to fix this so I can unload Open Feint achievements?

Regards,
Jordan Schuetz
Ninja Pig Stuidos

did you try putting it inside quotes ?
gameNetwork.unlockAchievement('1105932')

sorry it should be this
gameNetwork.request( "unlockAchievement", "achievementId" )

Sure enough that worked! Awesome! Thanks!

Do you know how to show the leaderboards? What is the code for that?

you can use
gameNetwork.show( "leaderboards" )
or to show a particular leaderboard item
 gameNetwork.show( "highscore", "LeaderboardID" )

check the following reference page for other details
http://developer.anscamobile.com/reference/index/game-network

views:1734 update:2011/10/10 9:00:20
corona forums © 2003-2011