Using IR Receiver to control robot direction

it just doesn't increment/decrement i

How do you know? Put a print(i) statement after the increment and post the result.

      case 0x3EB92:
      Serial.println("right");
      s=3;
      i = i + 1;
      break;