There is a thread for compile errors at the top of the forum--look for "MAX_SURFACE_INFO" there.
For the door, give it a targetname like "door1" and set the "TARGETED" spawnflag (little check box). Then make a trigger_use and give it this key/value.
okay, you wil have a 'main' script that does all the starting level stuff like gets all the other non-you-wrote scripts together and gets them going and you'll have your other littler threads in that script that carry out the specific functions of your level, such as locking and unlocking a door. soooo....
would lock the door as soon as the comp got to that thread and would unlock it after 5 seconds.
that whole first part until the first end was the 'main' thingy i was talking about that dealt with collecting the other scripts, such as ai.scr
it calls mythread (a thread separate from the first) at the end and it executes whatever mythread tells it to. then it'll go back and stop. your script is done!
for more details and stuff on scripting check out the tuts here at .map, they have tons of scripting in them and can tell you better than me how to.