The thing that's going to help you the most here is to get away from using single letter variables.

Instead, use whole words for your variable names.

Doing this will greatly improve the readability of your programs and start to lend them to being of the self-documenting style.

For instance, 3 months down the road when you pick up mirc scripting again, variables like %i %x %j won't mean squat to you, but variables like %nicklist_index %chat_lines %file_length will.

Also when you start using words for variables, you are suddenly capable of way more variable names than by just using letters and symbols (which amount to about 70 variables).