SRL Archive - Help and Support

What am i doing wrong?


Daniel.Blaze

2007-08-28 06:26:00

this is probably the simplest of errors to solve, but i can't seem to figure it out! :confused:


program New;

const
floor = 123456;

var
x,y: integer;

begin
repeat
wait(100);
If (FindColorSpiral(x, y, Floor,MMX1,MMY1,MMX2,MMY2)) then break;
until (False)
end.

can anyone tell me why this won't work?


Line 12: [Error] (12:32): Invalid number of parameters in script

Its something on the findcolorspiral line, but i've checked the manual and i think i have all the parameters right!

PLEASE HELP ME!

Killerdou

2007-08-28 06:31:06


program New;
var
x,y,Floor: integer;

begin
repeat
Floor := 123456;
Wait(100);
If (FindColorSpiral(x, y, Floor,MMX1,MMY1,MMX2,MMY2)) then break;
until(False);
end.
works

Daniel.Blaze

2007-08-28 06:36:15

but why not if floor is a const?

i have other consts in other findcolorspirals in my script and they work…

Killerdou

2007-08-28 06:38:10

absolutely no idea;) but this works so stick to it lol

Daniel.Blaze

2007-08-28 06:40:10

haha, ok, thanks a lot for your help :D

nielsie95

2007-08-28 08:06:29

Floor is a function in scar.. Replace the constant name Floor with FloorColor and it works.

Daniel.Blaze

2007-08-28 08:39:46

:duh: thank you neilsie95!