Author Topic: About TNManager.isHosting  (Read 1945 times)

tjdonald

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
About TNManager.isHosting
« on: June 22, 2015, 10:35:43 PM »
How to distinguish the successively from the channel? I used two procedures have opened the TNManager.isHosting is successful, this is why?

我打开两个程序,怎么区分谁是第一个打开的?我现在是打开两个程序 用TNManager.isHosting 返回的 都为真。为什么!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About TNManager.isHosting
« Reply #1 on: June 25, 2015, 09:32:11 PM »
TNManager.isHosting is only going to be 'true' on one player per channel. If you have 2 players in the same channel, only 1 will have that flag 'true', others will evaluate to 'false'.