MMORPG Core - Deutsche Community für Online Rollenspiele - Powered by vBulletin

  • AAA
  • Aggressive
  • Alienated
  • Amazed
  • Amused
  • Angelic
  • Angry
  • Apelike
  • Artistic
  • Asleep
  • Balanced
  • Banhappy
  • Bashful
  • Bitchy
  • Blah
  • Bookworm
  • Bored
  • Breezy
  • Brooding
  • Busy
  • Buzzed
  • Chatty
  • Cheeky
  • Cheerful
  • Cloud 9
  • Cold
  • Coldturkey
  • Confused
  • Cool
  • Crappy
  • Creative
  • Curious
  • Cynical
  • Daring
  • Dead
  • Depressed
  • Devilish
  • Disagree
  • Doh
  • Doubtful
  • Dramaqueen
  • Dreaming
  • Drunk
  • Elated
  • Energetic
  • Fiendish
  • Fine
  • Flirty
  • Gloomy
  • Goofy
  • Grumpy
  • Happy
  • Horny
  • Hot
  • Hungover
  • In Love
  • Innocent
  • Inpain
  • Insomnious
  • Inspired
  • Lonely
  • Lucky
  • Lurking
  • Mellow
  • Mischievious
  • Mondayblues
  • Musical
  • Nerdy
  • Notamused
  • Notworthy
  • Paranoid
  • Pensive
  • Predatory
  • Procrastinating
  • Psychedelic
  • Question
  • Relaxed
  • Roflmao
  • Sad
  • Scared
  • Scurvy
  • Shocked
  • Sick
  • Sleepy
  • Sluggish
  • Sneaky
  • Snobbish
  • Spaced
  • Spooky
  • Sporty
  • Starving
  • Stressed
  • Sunshine
  • Sweettooth
  • Thinking
  • Tired
  • Torn
  • Twisted
  • Veggedout
  • Volatile
  • Woot
  • Worried
  • Yeehaw
  • DDos
  • DDos
  • DDos
  • DDos
  • DDos
  • DDos
  • DDos
  • DDos
  • DDos
  • DDos
  • DDos
  • Tweet   
    Ergebnis 1 bis 6 von 6

    Thema: [Fix]QuizShow

    1. #1
      Anfänger
       
      Avatar von Hepatitis C
      Registriert seit
      Dec 2009
      Beiträge
      30
      Danke
      2
      Danke erhalten: 11

      Standard [Fix]QuizShow

      Die Werbung stört? Registriere dich hier!
      I hear a lot of people saying how quiz show does not work.
      Well I decided to go through the source and find out what the problem is.
      It's really simple so here it is.
      You're going to go to Database.cs and search for
      Code:
      public static void LoadQuestions()
      Under that you should see this
      Code:
      {
                  {
                      string[] AllLines = System.IO.File.ReadAllLines("C:\\OldCODB\\QuizShow.txt");
                      int questionscount = AllLines.Length;
                      for (int x = 0; x < questionscount; x++)
                      {
                          string[] Info = AllLines[x].Split('#');
                          string Question = Info[0];
                          Features.QuizShow.Answer[] Answers = new NewestCOServer.Features.QuizShow.Answer[4];
                          Answers[0] = new NewestCOServer.Features.QuizShow.Answer(Info[1].Split(':')[0], ushort.Parse(Info[1].Split(':')[1]));
                          Answers[1] = new NewestCOServer.Features.QuizShow.Answer(Info[2].Split(':')[0], ushort.Parse(Info[2].Split(':')[1]));
                          Answers[2] = new NewestCOServer.Features.QuizShow.Answer(Info[3].Split(':')[0], ushort.Parse(Info[3].Split(':')[1]));
                          Answers[3] = new NewestCOServer.Features.QuizShow.Answer(Info[4].Split(':')[0], ushort.Parse(Info[4].Split(':')[1]));
                          Features.QuizShow.Question Q = new NewestCOServer.Features.QuizShow.Question(Question, Answers);
                          Features.QuizShow.AllQuestions.Add((ushort)x, Q);
                      }
                  }
              }
      Replace it with this.
      Code:
      {
                  if (File.Exists(@"C:\OldCODB\QuizShow.txt"))
                  {
                      string[] AllLines = System.IO.File.ReadAllLines(@"C:\OldCODB\QuizShow.txt");
                      int questionscount = AllLines.Length;
                      for (int x = 0; x < questionscount; x++)
                      {
                          string[] Info = AllLines[x].Split('#');
                          string Question = Info[0];
                          Features.QuizShow.Answer[] Answers = new NewestCOServer.Features.QuizShow.Answer[4];
                          Answers[0] = new NewestCOServer.Features.QuizShow.Answer(Info[1].Split(':')[0], ushort.Parse(Info[1].Split(':')[1]));
                          Answers[1] = new NewestCOServer.Features.QuizShow.Answer(Info[2].Split(':')[0], ushort.Parse(Info[2].Split(':')[1]));
                          Answers[2] = new NewestCOServer.Features.QuizShow.Answer(Info[3].Split(':')[0], ushort.Parse(Info[3].Split(':')[1]));
                          Answers[3] = new NewestCOServer.Features.QuizShow.Answer(Info[4].Split(':')[0], ushort.Parse(Info[4].Split(':')[1]));
                          Features.QuizShow.Question Q = new NewestCOServer.Features.QuizShow.Question(Question, Answers);
                          Features.QuizShow.AllQuestions.Add((ushort)x, Q);
                      }
                  }
              }
      Hope this helps.

    2. #2
      Anfänger
       
      Avatar von Cømbat
      Registriert seit
      Dec 2009
      Beiträge
      47
      Danke
      3
      Danke erhalten: 6

      Standard

      Hehehe this fixed my quiz i thot id never get it working -.-

    3. #3
      Neuling
       

      Registriert seit
      Dec 2009
      Beiträge
      2
      Danke
      1
      Danke erhalten: 0

      Standard

      Didn't work for me :(

    4. #4
      Anfänger
       
      Avatar von Hepatitis C
      Registriert seit
      Dec 2009
      Beiträge
      30
      Danke
      2
      Danke erhalten: 11

      Standard

      Zitat Zitat von Mike[PM] [Um Links zu sehen registriere dich bitte. Klicke hier.]
      Didn't work for me :(

      Hmm are you sure you implemented it right?

    5. #5
      Anfänger
       
      Avatar von Cømbat
      Registriert seit
      Dec 2009
      Beiträge
      47
      Danke
      3
      Danke erhalten: 6

      Cool

      Zitat Zitat von Mike[PM] [Um Links zu sehen registriere dich bitte. Klicke hier.]
      Didn't work for me :(
      If you have errors in the source it wont work =P

    6. #6
      Neuling
       

      Registriert seit
      Jun 2010
      Beiträge
      6
      Danke
      0
      Danke erhalten: 0

      Standard


      Ah! Nice release but it isn't really fixed.

    Lesezeichen

    Berechtigungen

    • Neue Themen erstellen: Nein
    • Themen beantworten: Nein
    • Anhänge hochladen: Nein
    • Beiträge bearbeiten: Nein
    •