From 34aab4a3b8487235ea1858766ed72457364be618 Mon Sep 17 00:00:00 2001 From: eraser1 Date: Mon, 31 Aug 2015 14:25:32 -0500 Subject: [PATCH] Edit "DMS_PlayerNotificationTypes" and Configs --- @ExileServer/addons/a3_dms/config.sqf | 7 ++++--- .../addons/a3_dms/scripts/BroadcastMissionStatus.sqf | 8 +++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/@ExileServer/addons/a3_dms/config.sqf b/@ExileServer/addons/a3_dms/config.sqf index cb1188b..55ba05f 100644 --- a/@ExileServer/addons/a3_dms/config.sqf +++ b/@ExileServer/addons/a3_dms/config.sqf @@ -48,10 +48,11 @@ DMS_DEBUG = false; DMS_MinServerFPS = 10; // Minimum server FPS for missions to start //Mission notification settings - DMS_PlayerNotificationTypes = [ // Notification types. Supported values are: ["advancedHintRequest","dynamicTextRequest","standardHintRequest","systemChatRequest"] - "standardHintRequest" + DMS_PlayerNotificationTypes = [ // Notification types. Supported values are: ["dynamicTextRequest", "standardHintRequest", "systemChatRequest"] + "dynamicTextRequest", + "systemChatRequest" ]; - DMS_dynamicText_Size = 0.55; // Dynamic Text size for "dynamicTextRequest" notification type. + DMS_dynamicText_Size = "0.55"; // Dynamic Text size for "dynamicTextRequest" notification type. DMS_dynamicText_Color = "#FFCC00"; // Dynamic Text color for "dynamicTextRequest" notification type. DMS_MissionTypes = [ // List of missions with spawn chances. If they add up to 100%, they represent the percentage chance each one will spawn diff --git a/@ExileServer/addons/a3_dms/scripts/BroadcastMissionStatus.sqf b/@ExileServer/addons/a3_dms/scripts/BroadcastMissionStatus.sqf index 3421194..8431556 100644 --- a/@ExileServer/addons/a3_dms/scripts/BroadcastMissionStatus.sqf +++ b/@ExileServer/addons/a3_dms/scripts/BroadcastMissionStatus.sqf @@ -16,13 +16,11 @@ if (DMS_DEBUG) then diag_log format["DMS_DEBUG BroadcastMissionStatus :: Notification types: |%1| for broadcasting mission status: %2",DMS_PlayerNotificationTypes,_this]; }; -if !((typeName _this) == "STRING") then { - if (DMS_DEBUG) then - { - diag_log format["DMS_DEBUG BroadcastMissionStatus :: Converting %1 to string...",_this]; - }; +if ((typeName _this) != "STRING") then +{ _this = str _this; }; + { private "_args";