It looks like you're new here. If you want to get involved, click one of these buttons!
static int showLeaderboard(lua_State* L) { GGameKit* gamekit = getInstance(L, 1); NSString* category = nil; GKLeaderboardTimeScope timeScope = GKLeaderboardTimeScopeAllTime; if (!lua_isnoneornil(L, 2)) category = [NSString stringWithUTF8String:luaL_checkstring(L, 2)]; if (!lua_isnoneornil(L, 3)) NSInteger timeScope= luaL_checktimescope(L, 3); //--*** NSInteger gamekit->showLeaderboard(category, timeScope); return 0; } static int loadScores(lua_State* L) { GGameKit* gamekit = getInstance(L, 1); NSString* category = nil; GKLeaderboardTimeScope timeScope = GKLeaderboardTimeScopeAllTime; GKLeaderboardPlayerScope playerScope = GKLeaderboardPlayerScopeGlobal; int startEntry=1; int maxEntries=25; // Default if (!lua_isnoneornil(L, 2)) category = [NSString stringWithUTF8String:luaL_checkstring(L, 2)]; if (!lua_isnoneornil(L, 3)) NSInteger timeScope= luaL_checktimescope(L, 3); //--*** NSInteger if (!lua_isnoneornil(L, 4)) NSInteger playerScope= luaL_checkplayerscope(L, 4); //--*** NSInteger if (!lua_isnoneornil(L, 5)) startEntry= luaL_checknumber(L, 5); if (!lua_isnoneornil(L, 6)) maxEntries= luaL_checknumber(L, 6); gamekit->loadScores(category, timeScope, playerScope, startEntry, maxEntries); return 0; } |
Likes: vitalitymobile
Comments
http://giderosmobile.com/forum/discussion/5296/gamekit-mm-errors-with-xcode-6#Item_1