MULTIPLE INTERUPTS MEGA2560

I can only seem to be able to declare 1 interupt using "int pin=x"
I want to use 4 indipendant interupts and if I declare "int pin=2" and "int pin=3" ect. I get error saying previously declared.
How do I set up for mor than 1 interupt at a time ?

Please post your code, any error messages you're getting and a clear statement of your problem.

Error Message:-
nav_control.ino: In function 'void setup()':
nav_control:25: error: redeclaration of 'int pin'
nav_control:24: error: 'int pin' previously declared here
nav_control:26: error: redeclaration of 'int pin'
nav_control:24: error: 'int pin' previously declared here

void setup() {
  int pin=18;
  int pin=19;
  int pin=2;
  int state = LOW;
  pinMode (pedGrnpin,OUTPUT);
  pinMode (pedRedpin,OUTPUT);
  pinMode (north_redpin,OUTPUT);
  pinMode (north_orangpin,OUTPUT);
  pinMode (north_grnpin,OUTPUT);
  pinMode (south_redpin,OUTPUT);
  pinMode (south_orangpin,OUTPUT);
  pinMode (south_grnpin,OUTPUT);  
  pinMode(button, INPUT);
  pinMode(pedwaitpin,OUTPUT);
  digitalWrite(north_redpin,HIGH);// INITIAL STATE SET TO
  digitalWrite(south_grnpin,HIGH);// NORTH RED SOUTH GREEN
  digitalWrite(pedRedpin,HIGH);//initial set to RED
  delay(3000);
  attachInterrupt(0,CrossingRequest,RISING);
  attachInterrupt(5,DelayNortRequest,RISING);
  attachInterrupt(4,DelaySouthRequest,RISING);
}

Code can / should have unique names for variables. That variable can have diffrent values but you can not declair the same variable name more than once.

Not trying to declair a variable but to assign interupts to 3 different pins. The only code I can see to do this is "int pin=x"

Not trying to declair a variable but to assign interupts to 3 different pins. The only code I can see to do this is "int pin=x"

No, that simply assigns a value to a variable.
It does nothing to affect how interrupts are assigned.
You are declaring multiple variables with the same name in the same scope, which simply isn't allowed.

"attachInterrupt" is how you assign interrupts, but that takes an interrupt number, not a pin number as an argument.

Sorted. I was not aware you could add a name to the "int" instruction. I have now used the following and it works OK

int buttona=2;
int buttonx=18;
int buttony=19;

and then used attach :-

attachInterrupt(0,funtioncalla,RISING); // interrupt 0 in pin 2
attachInterrupt(5,functioncallx,RISING); // interrupt 5 on pin 18
attachinterrupt(4,funtioncally,RISING); // interrupt 4 on pin 19

This all seems to work OK pins 2,18,19 have to be set as pinMode,Input.

Hope this may help someone else.