I'll jump right into it. mIRC will halt processing of a script if it encounters multiple while's on one line. This is most likely due to a major script parsing flaw in the language, so while im not expecting Khaled to bother fixing this (scripting on one line isn't generally a good idea to begin with) I will post the bug information anyway.

Example Code:
This code was split into multiple lines for page viewing purposes. It should all be on one line in your remotes (or aliases)
Code:
alias whilebugtest { var %i = 1, %x | while (%i <= 3) { %x = 1 | while (%x <= 3) { 
echo -a i: %i x: %x | inc %x } | inc %i | echo -a i increased to %i } }

Example Output:
i: 1 x: 1
i: 1 x: 2
i: 1 x: 3
i increased to 2

Note that mIRC stops processing after %i is incremented to 2 whereas it should stop after %i is incremented to 4

Working Example (Multiple Lines):
Code:
alias whilebugtest { 
  var %i = 1, %x 
  while (%i <= 3) { 
    %x = 1 
    while (%x <= 3) {
      echo -a i: %i x: %x 
      inc %x 
    } 
    inc %i 
    echo -a i increased to %i 
  }
}

Proper Output:
i: 1 x: 1
i: 1 x: 2
i: 1 x: 3
i increased to 2
i: 2 x: 1
i: 2 x: 2
i: 2 x: 3
i increased to 3
i: 3 x: 1
i: 3 x: 2
i: 3 x: 3
i increased to 4

A final note: I attempted the same one line script using three while loops instead of two (%i, %x, and %y) and received the same results (execution halted on the last while switching to 2), you can try this yourself and see.