Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 1.36 KB  |  hits: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. for(i=0; i<pMain->m_ServerList.size(); i++)
  2.                 {               //iplen
  3.                         SetShort( buff, strlen(pMain->m_ServerList[i]->strServerIP), send_index );
  4.                         //ip
  5.                         SetString( buff, pMain->m_ServerList[i]->strServerIP, strlen(pMain->m_ServerList[i]->strServerIP), send_index );
  6.                         //namelen
  7.                         SetShort( buff, strlen(pMain->m_ServerList[i]->strServerName), send_index );
  8.                         //name
  9.                         SetString( buff, pMain->m_ServerList[i]->strServerName, strlen(pMain->m_ServerList[i]->strServerName ), send_index );                  
  10. #ifdef IS_1453
  11.                         SetShort(buff, 500, send_index);        //available slots      
  12.                         SetShort( buff, pMain->m_ServerList[i]->sUserCount, send_index);        // in use
  13.                         //SetShort( buff, i, send_index);
  14.                         SetShort(buff, pMain->m_ServerList[i]->sGroupNumber, send_index);
  15.  
  16.                         SetShort(buff, strlen(karusKing), send_index);
  17.                         SetString(buff, karusKing, strlen(karusKing), send_index);
  18.  
  19.                         SetShort(buff, strlen(karusText), send_index);
  20.                         SetString(buff, karusText, strlen(karusText), send_index);
  21.  
  22.                         SetShort(buff, strlen(elmoradKing), send_index);
  23.                         SetString(buff, elmoradKing, strlen(elmoradKing), send_index);
  24.  
  25.                         SetShort(buff, strlen(elmoradText), send_index);
  26.                         SetString(buff, elmoradText, strlen(elmoradText), send_index);
  27.  
  28. #endif
  29.                         #ifdef IS_1310
  30.                
  31.  
  32.                         SetShort(buff, 1, send_index);
  33.                         SetShort(buff, 15001, send_index);
  34.                         SetByte(buff, 1, send_index);
  35.                        
  36.                         #endif
  37.                 }