Jump to content

C# debugging

Go to solution Solved by Jahvy,

Never mind i see it lol I used a "(" instead of a "{" after the if statement. gotta love programming. 

I'm a beginner programmer and i wanted to just have fun a start writing a text based game for lols, but I've hit a wall. i don't understand why nothing is working any help or advice is wanted. 

 

Help please! my errors include

Error 2 ; expected
Error 3 ) expected
Error 1 Type or namespace definition, or end-of-file expected
 
-------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
 
namespace TextGame
{
    class Program
    {
        static void TellMeWhatProgramThisIs()
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Welcome To School Days");
        }
        
        static string Main(string[] args)
        {
            TellMeWhatProgramThisIs();
            
            Console.ForegroundColor = ConsoleColor.White; 
            Console.WriteLine("Choose Your Character");
            Console.ForegroundColor = ConsoleColor.DarkGray; 
            Console.WriteLine("Asana or Makise");
            string userinput = Console.ReadLine();
            
            
            if (userinput.ToLower() == "asana") 
            (
                Console.WriteLine("Ok Then") 
                
            }
 
        }
    }
}
 
 
Link to comment
https://linustechtips.com/topic/201714-c-debugging/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×