ffcfoo
2012-06-25 07:15:48
Hello, I am trying to get the hang of scripting but I keep getting this error and I don't know what is wrong with the procedure.
Heres the error:
This line
procedure OpenBank1;
begin
if OpenBank('clt', False, True) then
Withdraw('flax')
else
Writeln('Failed to Open Bank, Trying again!')
begin
Wait(1000);
if OpenBank('clt', True, True) then
Withdraw('flax')
else
Writeln('Failed to Open Bank, Trying again!');
begin
Wait(1000);
if OpenBank('clt', True, True) then
Withdraw('flax')
else
Writeln('Failed to Open Bank, Loggin off!');
Wait(1000);
logout;
end;
end;
end; Heres the error:
[Error] (58:3): Invalid number of parameters at line 57This line
procedure OpenBank1;
begin
if OpenBank('clt', False, True) then
Withdraw('flax')
else <-------------------------------------
Writeln('Failed to Open Bank, Trying again!')