Hi,
i have a problem with "tag mismatch"
Here's the affected code snippets:
PHP Code:
new Handle:g_cvar_checkinterval;
new Handle:g_roundend_counter;
public OnPluginStart()
{
g_cvar_checkinterval = CreateConVar("sm_checkinterval", "1.0", "team balance after x rounds", 0, true, 1.0);
HookEvent("round_end", Event_RoundEnd)
g_Cvar_round_restart_delay = FindConVar("mp_round_restart_delay");
}
public Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
new Float:restart_delay = GetConVarFloat(g_Cvar_round_restart_delay);
g_roundend_counter++;
if (g_cvar_checkinterval == g_roundend_counter)
{
CreateTimer((restart_delay-0.1), Balance);
g_roundend_counter = 0; (<---- tag mismatch line)
}
}