The for-loop is wasted (serthy already edited it out), just do this:

Code:
torles(trig,br)
{
    trigger=getent(trig,"targetname");
    brush=getent(br,"targetname");

    trigger waittill ("trigger");
    brush Delete();
    iprintln("kitört");
}

// mention the "thread"
thread torles("window_0", "window_trigger_0");
thread torles("window_1", "window_trigger_1");
thread torles("window_2", "window_trigger_2");
thread torles("window_3", "window_trigger_3");
thread torles("window_4", "window_trigger_4");
thread torles("window_5", "window_trigger_5");
// and so on...
I guess you just forgot the thread-keyword, but cant be sure, because you just posted this little piece of the whole script.