|
|
@ -191,9 +191,9 @@ void sortScoreboard() |
|
|
|
fclose(fp); |
|
|
|
|
|
|
|
printf(" Scoreboard:\n\n"); |
|
|
|
for (int j = 0; j <= numberOfLines; j++) |
|
|
|
for (int j = 0; j < numberOfLines; j++) |
|
|
|
{ |
|
|
|
printf("%d. %s %s %d\n", j + 1, (j < 10) ? " " : " ", playerlist[j].Name, playerlist[j].Points); |
|
|
|
printf("%d. %s %s %d\n", j + 1, (j < 9) ? " " : " ", playerlist[j].Name, playerlist[j].Points); |
|
|
|
sleep(1000); |
|
|
|
} |
|
|
|
|
|
|
|