ranking is missing

0 votes


I am using APP42 SDK v_1.2.2 for cocos2dx 2.2.3

Right now I am calling GetUserRanking and the returned rank is always empty. But score and userName are returned correctly everytime. 

Also, GetTopRankings is also returning empty rank but correct userNames and scores.

Any help? Thanks

asked Jul 22, 2014 in App42 Cloud API-BaaS by lnimi (10 points)

1 Answer

0 votes

Figured out. It is actually a bug in App42GameResponse.cpp

rank should be parsed by getJSONInt instead of getJSONString

answered Jul 23, 2014 by lnimi (10 points)
Hi Inimi,

Yes, that was a bug in the SDK version 1.2.2 and it is solved in version 1.4.
 For the second question,only GetUserRanking API will give you rank value in response. If you want to decide rank of a user in other APIs like GetTopRankings, GetTopNRankers etc, then the indices of the scores array will give you the rank as the response comes in descending order.

Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com