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); }