Well, here it is:

******script compile error******
bad syntax: (file 'maps/mp/castle.gsc', line 15
}
*
***********************************
And script is:
main()
{
door1= getent("lol1","targetname");
door2= getent("lol2","targetname");
t=0;

while(1)
{
if(t==10)
{
door1 rotateyaw(90,2);
door2 rotateyaw(-90,2);
door2 waittill("rotatedone");
iPrintInBold("Castle Opened!")
}
t++;
wait 10;
}
}