public bool SetOld() { return(SqlUtils.ExecuteCommand($"UPDATE scoreTable SET old = 1 WHERE songHash = \'{song.Hash}\' AND difficulty = {(int)difficulty} AND characteristic = \'{characteristic}\' AND userId = {player.UserId}") > 1); }
public bool SetScore(long score, bool fullCombo) { return(SqlUtils.ExecuteCommand($"UPDATE scoreTable SET score = {score}, fullCombo = {(fullCombo ? 1 : 0)} WHERE songHash = \'{song.Hash}\' AND difficulty = {(int)difficulty} AND characteristic = \'{characteristic}\' AND userId = {player.UserId} AND old = 0") > 1); }