View Single Post
  #14  
Old 05-27-2011, 09:58 AM
TheEnlightenedFlorist TheEnlightenedFlorist is offline
Approved Member
 
Join Date: May 2011
Location: SLC, Utah, USA
Posts: 143
Default

Wait, are you running it on a dedicated server? If so, try this. Otherwise, I'm out of ideas.

Code:
     if (GamePlay.gpAirGroups(1) != null && GamePlay.gpAirGroups(2) != null)
     {
         if (Time.tickCounter() % 9000 == 0)
         {
             int totalAircraft = GamePlay.gpAirGroups(1).Length + GamePlay.gpAirGroups(2).Length;
             if(GamePlay.gpPlayer() != null)
             {
                     GamePlay.gpLogServer(new Player[] { GamePlay.gpPlayer() }, totalAircraft.ToString(), null);
              }
              if(GamePlay.gpRemotePlayers() != null)
              {
                     GamePlay.gpLogServer(GamePlay.gpRemotePlayers(), totalAircraft.ToString(), null);
               }
         }
     }
Reply With Quote