title: C++ array - uses only first line
body: <p>i have problems with the array function.. - 
  i put my mac on fist line and then says me <code>approved</code> , but if is on 2st line <code>rejected</code>. my real one is B6 on end. /address down are not real../</p>
  
  <p>in heder file settings > </p>
  
  <p><code>#define CLIENTSNUMBER 2</code></p>
  
  <p><code>BOOL Checking2(LPCSTR MacID);</code></p>
  
  <p>cpp ></p>
  
  <pre><code>    char ClientMacs[CLIENTSNUMBER*1][18] = {
      "5A-77-77-97-87-B7",
      "5A-77-77-97-87-B6"
      };
  
  BOOL Checking2(LPCSTR MacID)
  {
      for(int x=0;x&lt;CLIENTSNUMBER;x++)
      {
          if(!strcmp(MacID,ClientMacs[x])) 
               {
               MessageBoxA(NULL,MacID,"APPROVED!",MB_OK);
               return false;  
           }  else {
               MessageBoxA(NULL,MacID,"REJECTED!",MB_OK); 
               return false;
           }
      }
      return false;
  }
  </code></pre>