Learn to indent properly your code, it show its structure and it helps reading and understanding.
using System.Collections;
using UnityEngine;
public class playercontroller : MonoBehaviour {
private Rigidbody rb;
void Start ()
{
rb = GetComponent< Rigidbody>();
void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
rb.AddForce( movement);
}
}
Professional programmer's editors have this feature and others ones such as parenthesis matching and syntax highlighting.
Notepad++ Home[
^]
ultraedit[
^]
The answer should be obvious with formatting and a little analyze of what is what.