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 1: server_cmd("amx_slap #%d %d",id,40)
case 2: server_cmd("amx_slay2 #%d 1")
case 3: banPlayer(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?