I was reading some more pascal tuts when I noticed one of the examples had a line that said
delay(10)
So I tried to make a script to test it:
OnPlayerCommand(ID: Byte; Text: string): boolean;
begin
if text = '/delaytest' then begin
result:=false
WriteConsole(ID,'.',$FFFFFFFF)
delay(10)
WriteConsole(ID,'.',$FFFFFFFF)
delay(20)
WriteConsole(ID,'.',$FFFFFFFF)
delay(50)
WriteConsole(ID,'.',$FFFFFFFF)
delay(100)
WriteConsole(ID,'.',$FFFFFFFF)
delay(250)
WriteConsole(ID,'.',$FFFFFFFF);
end;
end;
And true to my scripting abilities, it didn't work.
The problem is the 'BEGIN' expected one, but the strange thing is I get the same message with this:
OnPlayerCommand(ID: Byte; Text: string): boolean;
begin
end;
And this:
OnPlayerCommand(ID: Byte; Text: string): boolean;
begin
result:=false
end;
even many different positions of semicolons
Wierd?, No?, well I think it is.
Solutions, please.