check was > but had to be <
This commit is contained in:
parent
5a406acc6e
commit
124a190ac8
@ -423,7 +423,9 @@ public void FinishedStageRaceZone(int client)
|
|||||||
leftover_seconds = leftover_seconds * 100;
|
leftover_seconds = leftover_seconds * 100;
|
||||||
if (g_bDev[client])
|
if (g_bDev[client])
|
||||||
PrintToChat(client, "leftover_seconds: %f", leftover_seconds);
|
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);
|
CPrintToChat(client, "Your record: 0%i:0%.4f \nCommand: !toptime !mytime !stages", minutes, leftover_seconds);
|
||||||
else
|
else
|
||||||
CPrintToChat(client, "Your record: 0%i:%.4f \nCommand: !toptime !mytime !stages", minutes, leftover_seconds);
|
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);
|
CPrintToChat(client, "{green}[UNLOZE] Client: %N Time: 0%i:%.4f", client, g_iRoundMinutes, g_fRoundSeconds);
|
||||||
if (g_iRoundMinutes < minutes)
|
if (g_iRoundMinutes < minutes)
|
||||||
sendMYSQL(client, g_iRoundMinutes, g_fRoundSeconds, player_stage[client]);
|
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]);
|
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]);
|
sendMYSQL(client, g_iRoundMinutes, g_fRoundSeconds, player_stage[client]);
|
||||||
}
|
}
|
||||||
else
|
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);
|
CPrintToChat(client, "{green}[UNLOZE] Client: %N Time: 0%i:%.4f", client, l_iCalculateMins, l_fCalculateSecs);
|
||||||
if (l_iCalculateMins < minutes)
|
if (l_iCalculateMins < minutes)
|
||||||
sendMYSQL(client, l_iCalculateMins, l_fCalculateSecs, player_stage[client]);
|
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]);
|
sendMYSQL(client, l_iCalculateMins, l_fCalculateSecs, player_stage[client]);
|
||||||
else if (minutes == 0.0 && leftover_seconds == 0.0)
|
else if (minutes == 0.0 && leftover_seconds == 0.0)
|
||||||
sendMYSQL(client, l_iCalculateMins, l_fCalculateSecs, player_stage[client]);
|
sendMYSQL(client, l_iCalculateMins, l_fCalculateSecs, player_stage[client]);
|
||||||
|
Loading…
Reference in New Issue
Block a user