2014-02-20 46 views
0

我用small-bet-nextpeer SDK在遊戲中挑戰真錢。它顯示多個比賽,如何避免多個並添加名字?small-bet nextpeer:只允許一個錦標賽+更新錦標賽名稱

這裏是我的小賭注初始化代碼:

[Nextpeer setSmallBetSandboxKey:SMALL_BET_SANDBOX_KEY andProductionKey:SMALL_BET_PRODUCTION_KEY]; 

    [Nextpeer initializeWithProductKey:NEXT_PEER_GAME_KEY 
          andDelegates:[NPDelegatesContainer containerWithNextpeerDelegate:self notificationDelegate:self tournamentDelegate:self]]; 

下面是截圖: enter image description here

回答

1

得到了解決。

爲避免多次比賽,需要在代碼檢查:

-(BOOL)nextpeerSupportsTournamentWithId:(NSString*)tournamentUuid 
{ 
    if([tournamentUuid isEqualToString:@"NPA23903563215268043"]) 
     return YES; 
    else 
     return NO; 
} 

我們可以在nextpeer網站編輯賽題,不小的賭注。

1

我寫了SBNPSDK框架。

你有兩個選擇:

  1. 刪除從nextpeer網站的備用比賽。

  2. 按照Guru的建議執行-(BOOL)nextpeerSupportsTournamentWithId:(NSString*)tournamentUuid。此方法僅用於從主界面過濾nextpeer錦標賽,它絕不會詢問所有以SB開頭的小投注錦標賽tournamentUuid