Log in

View Full Version : Duplicate identifier 'x'



stein3
03-31-2007, 12:04 PM
I run it and im pretty sure that theres no duplicate identifier.
Obviously SCAR searches better than I do :(

var
x,y,c,v: Integer;

procedure Draynor;
if(FindColor(x,y,13614754,661,10,709,58))
begin
FindColor(x,y,13614754,661,10,709,58);

NVM I just changed the variables to xax and yax. then cx and cy.
Sorry for posting this. It just needed fiddling

3Garrett3
03-31-2007, 02:23 PM
Im pretty sure that it was because you had SRL included, and that already has x,y declared as variables?

JAD
03-31-2007, 02:45 PM
Yes, in SRL x,y is always included, so you don't have to ever declare them as variables, or you will get an error.