diff --git a/RaceTimer/scripting/unloze_racetimer_redux.sp b/RaceTimer/scripting/unloze_racetimer_redux.sp index 8ac6d082..f87a208c 100644 --- a/RaceTimer/scripting/unloze_racetimer_redux.sp +++ b/RaceTimer/scripting/unloze_racetimer_redux.sp @@ -423,7 +423,9 @@ public void FinishedStageRaceZone(int client) leftover_seconds = leftover_seconds * 100; if (g_bDev[client]) PrintToChat(client, "leftover_seconds: %f", leftover_seconds); - if (leftover_seconds < 10.0) + if (minutes == 0 && leftover_seconds == 0.0) + CPrintToChat(client, "Your record: None yet \nCommand: !toptime !mytime !stages"); + else if (leftover_seconds < 10.0) CPrintToChat(client, "Your record: 0%i:0%.4f \nCommand: !toptime !mytime !stages", minutes, leftover_seconds); else CPrintToChat(client, "Your record: 0%i:%.4f \nCommand: !toptime !mytime !stages", minutes, leftover_seconds); @@ -433,9 +435,9 @@ public void FinishedStageRaceZone(int client) CPrintToChat(client, "{green}[UNLOZE] Client: %N Time: 0%i:%.4f", client, g_iRoundMinutes, g_fRoundSeconds); if (g_iRoundMinutes < minutes) sendMYSQL(client, g_iRoundMinutes, g_fRoundSeconds, player_stage[client]); - else if (g_iRoundMinutes == minutes && g_fRoundSeconds > leftover_seconds) + else if (g_iRoundMinutes == minutes && g_fRoundSeconds < leftover_seconds) sendMYSQL(client, g_iRoundMinutes, g_fRoundSeconds, player_stage[client]); - else if (minutes == 0.0 && leftover_seconds == 0.0) + else if (minutes == 0 && leftover_seconds == 0.0) sendMYSQL(client, g_iRoundMinutes, g_fRoundSeconds, player_stage[client]); } else @@ -448,7 +450,7 @@ public void FinishedStageRaceZone(int client) CPrintToChat(client, "{green}[UNLOZE] Client: %N Time: 0%i:%.4f", client, l_iCalculateMins, l_fCalculateSecs); if (l_iCalculateMins < minutes) sendMYSQL(client, l_iCalculateMins, l_fCalculateSecs, player_stage[client]); - else if (l_iCalculateMins == minutes && l_fCalculateSecs > leftover_seconds) + else if (l_iCalculateMins == minutes && l_fCalculateSecs < leftover_seconds) sendMYSQL(client, l_iCalculateMins, l_fCalculateSecs, player_stage[client]); else if (minutes == 0.0 && leftover_seconds == 0.0) sendMYSQL(client, l_iCalculateMins, l_fCalculateSecs, player_stage[client]);