Dumping and Driving at the same time(code)

We our have compiler errors on a part of our code. We our trying to dump and drive at the same time. Because when we try dump and drive backwards in two different function we would drop them before we reached the fence or tip over.

void autonDriveforwardsanddump(float distance, float dumpplace) // drive at a set speed for a specified distance (-speed is backwards and +speed is forwards
{
	SensorValue[rightDrive1] = 0;
	SensorValue[leftDrive1] = 0;

	while (rightDrive() < distance && leftDrive() < distance)
	{
		if (rightDrive() < leftDrive())
		{
			motor[backRightDrive] = fastSpeed;
			motor[frontRightDrive] = fastSpeed;
			motor[Drive3R] = fastSpeed;
			motor[backLeftDrive] = slowSpeed;
			motor[frontLeftDrive] = slowSpeed;
			motor[Drive3L] = slowSpeed;
		}
		if (rightDrive() > leftDrive())
		{
			motor[backRightDrive] = slowSpeed;
			motor[frontRightDrive] = slowSpeed;
			motor[Drive3R] = slowSpeed;
			motor[backLeftDrive] = fastSpeed;
			motor[frontLeftDrive] = fastSpeed;
			motor[Drive3R] = fastSpeed;
		}

		else	if  (rightDrive() == leftDrive())

		motor[backRightDrive] = fastSpeed;
		motor[frontRightDrive] = fastSpeed;
		motor[Drive3R] = fastSpeed;
		motor[backLeftDrive] = fastSpeed;
		motor[frontLeftDrive] = fastSpeed;
		motor[Drive3L] = fastSpeed;

		if (rightDrive() >= dumpplace())
		{

			if (abs(nMotorEncoder[leftArm2]) < 855)
			{
				motor[leftArm2] = 127;
				motor[leftArm3] = 127;
				motor[rightArm2] = -127;
				motor[rightArm3] = -127;
			}

			if (abs(nMotorEncoder[leftArm2]) > 750)
			{
				SensorValue[claw] = 1;
			}

			if (abs(nMotorEncoder[leftArm2]) >= 855)
			{
				motor[leftArm2] = 0;
				motor[leftArm3] = 0;
				motor[rightArm2] = 0;
				motor[rightArm3] = 0;
			}
		}
}
	motor[backRightDrive] = -5;
	motor[frontRightDrive] = -5;
	motor[Drive3R] = -5;
	motor[backLeftDrive] = -5 ;
	motor[frontLeftDrive] = -5;
	motor[Drive3L] = -5;
	motor[leftArm2] = 0;
	motor[leftArm3] = 0;
	motor[rightArm2] = 0;
	motor[rightArm3] = 0;
}

Your else if needs { }