Fix Advertisements for new sourcepawn

This commit is contained in:
BotoX 2019-11-28 15:23:30 +01:00
parent 3b2ec55fb5
commit f36bb5a946

View File

@ -55,7 +55,7 @@ public void OnMapStart()
{ {
ParseAds(); 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) public Action Timer_DisplayAd(Handle timer)
@ -89,7 +89,7 @@ public void ConVarChange_Interval(ConVar convar, const char[] oldValue, const ch
KillTimer(g_hTimer); 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);
} }