From 705b4d38daa72e3748435164ed07712798d885b7 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 29 Oct 2018 22:29:12 +0100 Subject: [PATCH] Fixed js errors / warnings --- Client/Gui/deathscreen.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Client/Gui/deathscreen.js b/Client/Gui/deathscreen.js index 82dc413a..639403b9 100644 --- a/Client/Gui/deathscreen.js +++ b/Client/Gui/deathscreen.js @@ -49,7 +49,7 @@ mp.events.add("respawnDeathPlayer", () => { }); mp.events.add("updateDutyMedics", (count) => { - if (count == true) + if (count === true) { dutyMedics++; } @@ -70,11 +70,11 @@ mp.events.add("render", () => { if (dutyMedics > 0) { medicString = "Derzeit sind ~g~" + dutyMedics + " Medics ~s~im Dienst ~c~und versuchen dich wiederzubeleben..."; } else { - medicString = "Derzeit sind ~r~keine Medics ~s~im Dienst." + medicString = "Derzeit sind ~r~keine Medics ~s~im Dienst."; } deathSeconds = respawnTime - Math.floor(currentDate.getTime() / 1000); - var alpha = fade + (Math.floor((currentDate.getTime() / 1000) - (deathDate.getTime() / 1000))); + var alpha = fade + Math.floor(currentDate.getTime() / 1000 - deathDate.getTime() / 1000); if (deathSeconds >= 0) { mp.game.graphics.drawSprite("Mptattoos", "clearout", 0.625, 0.52, 0.1, 0.1, 0, 255, 255, 255, 236); mp.game.graphics.drawText("Respawn in: ~y~" + deathSeconds, [0.5, 0.5], @@ -83,14 +83,14 @@ mp.events.add("render", () => { color: [255, 255, 255, 255], scale: [0.8, 0.8], outline: true - }) + }); mp.game.graphics.drawText(medicString, [0.5, 0.975], { font: 4, color: [255, 255, 255, 255], scale: [0.4, 0.4], outline: true - }) + }); mp.game.graphics.drawRect(0.5, 0.5, 1, 1, 0, 0, 0, alpha); } else {