public OnGameModeExit() { new File:tmphandle; new File:fhandle; new temp[256]; new string[256]; new checkOn[256]; new string2[256]; for(new i = 0; i < totalCheckpoints; i++) { GivePlayerMoney(dynCheckOwner[i], ((dynCheckCosts[i]/100)*90)); dynCheckOwner[i] = 999; } for(new j=0; j<=MAX_PLAYERS; j++) { if(IsPlayerConnected(j)) { if(loggedIn[j] == 1) { //dostuffhere fclose(tmphandle); fclose(fhandle); } } } return 1; }