Raised This Month: $ Target: $400
 0% 

Reliable channel overflowed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
monolit
Junior Member
Join Date: May 2011
Old 05-16-2011 , 13:51   Reliable channel overflowed
Reply With Quote #1

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.
monolit is offline
 


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 04:21.


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