Raised This Month: $ Target: $400
 0% 

tag mismatch problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mihaiveress
Member
Join Date: Jan 2009
Location: Tirgu-Mures , Romania
Old 02-18-2009 , 06:39   tag mismatch problem
Reply With Quote #1

here is the part of the code that makes me problems and when I compile it i get a warning with tag mismatch

PHP Code:
punishPlayer(id) {
                
    new 
action 1
    
new name[32]
    
action get_cvar_num("amx_antirusher_action")    
    if ((
get_cvar_num("amx_antirusher_immunity") == 1)&&(get_user_flags(id)&ADMIN_IMMUNITY)) {
        
action 0
    
}
    
    new 
players[32],num,ok=0,i=0
    get_players
(players,num)    
    if(
action==0)
      {
      
ok=1
      get_user_name
(id,name,31
      
server_cmd("amx_chat %L",LANG_SERVER,"AR_SRV_INFO"name
      }
    while(
i<num&&ok==0)    
        {
        if(
players[i]==id)
          {
          
g_punish[i]+=1
          ok
=1
         
}
        
i+=1
        
}
    
i-=1    
    
new float:timp=get_gametime()
    
    if((
timp-delayp[i])>10 // <---- here
        
{
        switch (
g_punish[i])
        {
        case 
0:
            {
            new 
name[32]
            
get_user_name(id,name,31)
            
server_cmd("amx_chat %L",LANG_SERVER,"AR_SRV_INFO"name)
            }
        case 
1server_cmd("amx_slap #%d %d",id,40)             
        case 
2server_cmd("amx_slay2 #%d 1"
        case 
3banPlayer(id)
        default:{
            new 
name[32]
            
get_user_name(id,name,31)
            
server_cmd("amx_chat %L:p",LANG_SERVER,"AR_SRV_INFO"name)
            }
        }
        
delayp[i]=timp   //   <---- HERE
         

the strange parte is that i declared delayp and the begining of the code
new Float:delayp[32]=0

some help please?
mihaiveress is offline
Send a message via Yahoo to mihaiveress Send a message via Skype™ to mihaiveress
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:02.


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