QUOTE(harjukki @ Oct 8 2009, 07:41 AM)

Many of are having troubles with eroor called indentifier expected that means you have diffrent amount of begins and ends.
So make sure you end for every begin. I hope this will help you to debug your scripts ;D.
identifier can be almost anything... xD
begin
function name:boolean;
end;
can all be considered at length to be identifiers when the debug calls it, but it normally helps you to figure out which one you are missing faster if you understand the debug