The question is answered, right answer was accepted
Parsing Error
Could you tell me where is the mistake? And error says (47,9) what this is means?
public class NumberWizard : MonoBehaviour {
// Use this for initialization
void Start () {
print ("Welcome to Number Wizard");
print ("Pick a name in your head, but don't tell me");
int max = 1000;
int min = 1;
print ("The highest number you can pick is " + max);
print ("The lowest number you can pick is " + min);
print ("Is the number higher or lower than 500?");
print ("Up = higher, down = lower, return = equal");
}
// Update is called once per frame
void Update () {
if (Input.GetKeyDown(KeyCode.UpArrow)) {
print ("Up arrow pressed");
}
if (Input.GetKeyDown(KeyCode.DownArrow)) {
print ("Down arrow pressed");
}
}
}
Hi, a parsing error is when the compiler is kind of lost, most of the time because of a missing closing ")" or "}". It then reach the end of the file trying to find the closing bracket and tell that the error is at the last character of the file. The (47,9) must be the (line,column) "coordinates" of the end of the file. I don't see an error in the code you posted so it might be in another file ? EDIT: the full error message must specify the name of the .cs file.
Follow this Question
Related Questions
Parsing error CS8205,Parsing Error CS8205 2 Answers
Parsing error 1 Answer
Parsing error, 1 Answer
Parsing Error need help 1 Answer
Coding Errors 1 Answer