|
|
@ -331,11 +331,11 @@ void sortScoreboard() |
|
|
|
//Die Textdatei wird Zeile für Zeile eingelesen und in die Strukturliste eingefügt |
|
|
|
for (int j = 0; fgets(line, sizeof line, file) != NULL && j <= 10; j++) |
|
|
|
{ |
|
|
|
char* playertmp = strtok(line, " "); |
|
|
|
strcpy(playerlist[j].Name, playertmp); |
|
|
|
char* playerTmp = strtok(line, " "); |
|
|
|
strcpy(playerlist[j].Name, playerTmp); |
|
|
|
|
|
|
|
playertmp = strtok(NULL, " "); |
|
|
|
int playerPoints = atoi(playertmp); |
|
|
|
playerTmp = strtok(NULL, " "); |
|
|
|
int playerPoints = atoi(playerTmp); |
|
|
|
|
|
|
|
playerlist[j].Points = playerPoints; |
|
|
|
|
|
|
|