sachin patil

sachin patil

  • 2.1k
  • 65
  • 18k

problem in storeing highscore in xna gaming...:(

Feb 14 2014 1:52 PM
public void gethighscxore() { Boolean boolwork = true; fileread = new FileStream(filename, FileMode.OpenOrCreate, FileAccess.Read); scoreread = new StreamReader(fileread); for (int i = 0; i < maxhscore; i ) { texthscore1[i] = scoreread.ReadLine(); if (texthscore1[i] == null) { texthscore1[i] = "0"; } } scoreread.Close(); fileread.Close(); if (boolwork) { int j = 0; for (int i = 0; i < maxhscore; i ) { if (plane_.score > Convert.ToInt32(texthscore1[i])

Answers (11)