OnCollisionEnter doesn't work - C#

This simple line of code won’t work. I need this to work so the rest of my project can work.

	void OnCollisionEnter(Collision coll)
	{		
		Debug.Log("hit something");
    }

you want this one instead: Unity - Scripting API: CharacterController.OnControllerColliderHit(ControllerColliderHit)