AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Reliable channel overflowed (https://forums.alliedmods.net/showthread.php?t=157113)

monolit 05-16-2011 13:51

Reliable channel overflowed
 
So I'm having this problem, the problem I think is caused by something from this code, but I can't find where exactly it is.

PHP Code:

public Show_Banned_Menu(id)
{
    if(
cs_get_user_team(id) != CS_TEAM_SPECTATOR)
        
cs_set_user_team(idCS_TEAM_SPECTATOR)
        
    new 
title[192];
    
formatex(title191"\r*** YOU ARE BANNED ! ! ! ***^n\wTime until kick: \r%d"BannedTimeLeft[id])
    new 
gmenu menu_create(title "Handler_Banned_Menu");
    
    new 
m1[192], m2[192], m3[192];
    
    static 
szDate[32]
    
format_time(szDatecharsmax(szDate), "%a, %b %d at %H:%M:%S"iBan[id])
    
    
formatex(m1191"\y***\w by: %s"iBanAdmin[id])
    
formatex(m2191"\y***\w for: %s"iBanReason[id])
    
formatex(m3191"\y***\w expires: %s"szDate)
    
    
menu_additem(gmenum1"1" 0);
    
menu_additem(gmenum2"2" 0);
    
menu_additem(gmenum3"3" 0);
    
menu_addtext(gmenu"\dVisit \whttp://cs.xxx.com/bans/ \dto see all bans^nContact skype: xxx.porn.xxx for more information"1)
    
menu_setprop(gmenu MPROP_PERPAGE0);
    
    
menu_display(id gmenu 0);
    
    if(!
TimeIsUp[id])
    {
        if(
BannedTimeLeft[id] > 0)
        {
            
set_task(1.0"MinusTime"id)
            
TimeIsUp[id] = true;
        }
        else if(
BannedTimeLeft[id] <= 0)
        {
            
client_print(idprint_console"*------* *------------* *------*^n*------* You are banned *------*^n*** by: %s^n*** for: %s^n*** expires: %s^n*------* You are banned *------*^n*------* *------------* *------*"iBanAdmin[id], iBanReason[id], szDate)
            
client_cmd(id"disconnect")
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
MinusTime(id)
{
    
BannedTimeLeft[id]--;
    
TimeIsUp[id] = false;
    
Show_Banned_Menu(id);
}

public 
Handler_Banned_Menu(idgmenuitem)
{
    switch(
item)
    {
        default: 
Show_Banned_Menu(id);
    }
    return 
PLUGIN_HANDLED;


I get this message, when BannedTimeLeft[] = 0, and server should send "disconnect" message to my console.


All times are GMT -4. The time now is 04:21.

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