From f36bb5a9467bb8bf9e5d8fa80302ec596d64d0af Mon Sep 17 00:00:00 2001 From: BotoX Date: Thu, 28 Nov 2019 15:23:30 +0100 Subject: [PATCH] Fix Advertisements for new sourcepawn --- Advertisements/scripting/Advertisements.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Advertisements/scripting/Advertisements.sp b/Advertisements/scripting/Advertisements.sp index faf9d68b..050250c9 100644 --- a/Advertisements/scripting/Advertisements.sp +++ b/Advertisements/scripting/Advertisements.sp @@ -55,7 +55,7 @@ public void OnMapStart() { ParseAds(); - g_hTimer = CreateTimer(g_hInterval.IntValue * 1.0, Timer_DisplayAd, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE); + g_hTimer = CreateTimer(float(g_hInterval.IntValue), Timer_DisplayAd, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE); } public Action Timer_DisplayAd(Handle timer) @@ -89,7 +89,7 @@ public void ConVarChange_Interval(ConVar convar, const char[] oldValue, const ch KillTimer(g_hTimer); } - g_hTimer = CreateTimer(g_hInterval.IntValue * 1.0, Timer_DisplayAd, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE); + g_hTimer = CreateTimer(float(g_hInterval.IntValue), Timer_DisplayAd, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE); }