diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index d09123d..44a25c9 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -111,6 +111,7 @@ void Generatefield() { void addScoreboard() { + int ScorePoints; //Die txt wird geƶffnet FILE* fp = fopen("ScoreBoard.txt", "a+"); char name[255]; @@ -118,5 +119,7 @@ void addScoreboard() printf("Bitte gib deinen Namen ein:\n"); scanf("%s", name); + fprintf(fp, "%s %d\n", name, ScorePoints); + fclose(fp); }