AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   tag mismatch (https://forums.alliedmods.net/showthread.php?t=162572)

Mathmos 07-20-2011 15:41

tag mismatch
 
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"0true1.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)
    }



Exolent[jNr] 07-20-2011 15:46

Re: tag mismatch
 
Post in the SourceMod section.

Mathmos 07-20-2011 15:50

Re: tag mismatch
 
oh sry ... my fault

please delete


All times are GMT -4. The time now is 01:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.