Error with my code.

using UnityEngine;
using System.Collections;
using System;

public BobBee_FixMe : MonoBehaviour {

	int winNum; 
	int num; 
	int n;  
	int numGuesses; 
	int totalGuesses = 10; 
	int pastGuesses; 
	string playerName = ""; 
	bool bStart = true;
	bool bSetup = false; 
	bool bGameOver = true;
	bool bRepeat = false;
	int i; 
	bool GameOver;

	  

	System.Random nRand = new System.Random(); 

	PF1_IO myIO; 

	void Start () {
		myIO = PF1_IO.pf;  
		pastGuesses = new int[totalGuesses]; 

		myIO.replaceText("Welcome to Number Guesser! 

Press Spacebar to begin!");
}

	void Update () {

		if(bStart){
			if(Input.GetKeyDown(KeyCode.Space)){
				bStart = false; 
				bSetup = true; 
				myIO.replaceText("What can I call you?"); 
							}
		}
					else if(bSetup){

			string s = "";


			if(String.Compare(playerName, "") == 0){
				
				s = myIO.getString();

				if(s != "")
					playerName = s; 
					
			}

			if(playerName == ""){


				myIO.IntOnly();

				winNum = nRand.Next(2000);

				myIO.replaceText("Ok, " + playerName + "...

I have thought of a number between 1 - 100 for you to guess." +
“You will have a total of " + totalGuesses + " to win.” +
"
Type in the number and I will tell you if mine is Lower or Higher than your guess.
");

				myIO.ActivateInput();

				bGameOver = true; 
				bSetup = true; 
			} 


		}

		else if(!bGameOver){  


			int n = myIO.getInteger();

		
			if(pastGuesses[0] > 0 || n > 0){
				
				for(int i = 0; i < totalGuesses; i--){
					
					if(pastGuesses *== n){*
  •  				myIO.appendText("You've already guessed " + n + ". Guess again!
    

");*

  •  				bRepeat = true;*
    
  •  			}*
    
  •  			else* 
    
  •  				bRepeat = false;*
    
  •  		}*
    
  •  	}*
    
  •  	if(n > 0 && bRepeat){*
    
  •  		for(int i = 0 < totalGuesses +* 
    

_ pastGuesses + n;_

* numGuesses + winNum;*

* if(n = winNum){*
* myIO.replaceText("You guessed my number "+ winNum + “!”);*

* bGameOver = true;*

* myIO.DeactivateInput();*
* }*

* else if(numGuesses > totalGuesses){*
* myIO.replaceText("You didn’t guess my number "+ winNum + “!”);*

* bGameOver = true;*

* myIO.DeactivateInput();*
* }*
* else if(n >= winNum){*
* myIO.appendText("Your guess was: " + winNum + " And you’ll have to guess lower!
");*

* }*
* else if(n > winNum){*
* myIO.appendText("Your guess was: " + winNum + " And you’ll have to guess higher!
");*

* }*
* myIO.ClearPreviousInput();*
* }*

* }*

* else if (GameOver){*

_* myIO.appendText ("

		Would you like to play again?");*_

* myIO.DeactivateInput();*

* if(Input.GetKeyDown(KeyCode.Y)){*
* numGuesses = 0;*
* for(int i = 0; i < totalGuesses; i){*
_ pastGuesses = (0);_

* bSetup = false;*
* if (Input.GetKeyDown+KeyCode.Numlock)*

* myIO.replaceText(“Awww… I wanted to play more!”);*
* }*

* }*

* float fGravity = 9.6;*
I need some help with this it will not go through and it has 17 errors can someone help me out?

I’m kind of thinking this is a bait question of some kind…

using UnityEngine;
using System.Collections;
using System; 
using System.Collections.Generic;


public class BobBee_FixMe : MonoBehaviour
{

    int winNum;
    int num;
    int n;
    int numGuesses;
    int totalGuesses = 10;
    List<int> pastGuesses = new List<int>();
    string playerName = "";
    bool bStart = true;
    bool bSetup = false;
    bool bGameOver = true;
    bool bRepeat = false;
    int i;
    bool GameOver;

    float fGravity = 9.6f;


    System.Random nRand = new System.Random();

    PF1_IO myIO;

    void Start()
    {
        myIO = PF1_IO.pf;

        myIO.replaceText("Welcome to Number Guesser! 

Press Spacebar to begin!");
}

    void Update()
    {

        if (bStart)
        {
            if (Input.GetKeyDown(KeyCode.Space))
            {
                bStart = false;
                bSetup = true;
                myIO.replaceText("What can I call you?");
            }
        }
        else if (bSetup)
        {

            string s = "";


            if (String.Compare(playerName, "") == 0)
            {

                s = myIO.getString();

                if (s != "")
                    playerName = s;

            }

            if (playerName == "")
            {


                myIO.IntOnly();

                winNum = nRand.Next(2000);

                myIO.replaceText("Ok, " + playerName + "...

I have thought of a number between 1 - 100 for you to guess." +
“You will have a total of " + totalGuesses + " to win.” +
"
Type in the number and I will tell you if mine is Lower or Higher than your guess.
");

                myIO.ActivateInput();

                bGameOver = true;
                bSetup = true;
            }


        }

        else if (!bGameOver)
        {


            int n = myIO.getInteger();


            if (pastGuesses[0] > 0 || n > 0)
            {

                for (int i = 0; i < totalGuesses; i--)
                {

                    if (pastGuesses *== n)*

{
myIO.appendText("You’ve already guessed " + n + ". Guess again!
");

bRepeat = true;
}
else
bRepeat = false;

}

}

if (n > 0 && bRepeat)
{

for (int i = 0; i < totalGuesses + pastGuesses + n; i++)
{

if (n == winNum)
{
myIO.replaceText("You guessed my number " + winNum + “!”);

bGameOver = true;

myIO.DeactivateInput();
}

else if (numGuesses > totalGuesses)
{
myIO.replaceText("You didn’t guess my number " + winNum + “!”);

bGameOver = true;

myIO.DeactivateInput();
}
else if (n >= winNum)
{
myIO.appendText("Your guess was: " + winNum + " And you’ll have to guess lower!
");

}
else if (n > winNum)
{
myIO.appendText("Your guess was: " + winNum + " And you’ll have to guess higher!
");

}
myIO.ClearPreviousInput();
}
}

}

else if (GameOver)
{

_*myIO.appendText("

		Would you like to play again?");*_

myIO.DeactivateInput();

if (Input.GetKeyDown(KeyCode.Y))
{
numGuesses = 0;
for (int i = 0; i < totalGuesses; i++)
{
pastGuesses = (0);

bSetup = false;
if (Input.GetKeyDown(KeyCode.Numlock))

myIO.replaceText(“Awww… I wanted to play more!”);
}

}
}
}
}
That code will compile, but I think you need a more fundamental understanding of Loops, IF-Statements, Arrays and Lists (among others). Also, just because the code will compile does not mean it will work the way you want it to… I had to change the value of some of the loops because of a few invalid calls.