(16,33): error CS0029: Cannot implicitly convert type `UnityStandardAssets.Vehicles.Car.WheelEffects' to `UnityStandardAssets.Vehicles.Car.WheelEffects[]'

Hey

So, right now I’m currently following a tutorial on putting Multiplayer into my racing game with Photon Unity. In the video the guy used a code like this

WheelEffects [] WEs = GetComponentInChildren <WheelEffects>();
		foreach(WheelEffects WhEf in WEs)
				WhEf.enabled = true;

but then I saved it and I got the error Assets/Network/NetworkPlayer.cs(16,33): error CS0029: Cannot implicitly convert type UnityStandardAssets.Vehicles.Car.WheelEffects to UnityStandardAssets.Vehicles.Car.WheelEffects

using UnityEngine;
using System.Collections;
using UnityStandardAssets.Vehicles.Car;

public class NetworkPlayer : Photon.MonoBehaviour {

	public GameObject Mycamera; //Mycamera to follow cars

	void Start () {
		if (photonView.isMine) {
		Mycamera.SetActive(true); //Dont set active
		GetComponent<CarController>().enabled = true; // enable them when multiplayer starts
		GetComponent<CarUserControl>().enabled = true;
		GetComponent<Rigidbody>().useGravity = true;

		WheelEffects [] WEs = GetComponentInChildren <WheelEffects>();
		foreach(WheelEffects WhEf in WEs)
				WhEf.enabled = true;
		}

		else {
		}
	}

	void onPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info) {

	}

}

Any help would be appreciated

Thanks

Dok

You made a little mistake.
Just change "GetComponentInChildren " to “GetComponentsInChildren”

you just forget the “s”