11
Answers

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

Ask a question
sachin patil

sachin patil

10y
1.7k
1
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)