Raised This Month: $ Target: $400
 0% 

Reliable channel overflow ( getting html file from configs dir )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-19-2009 , 03:41   Reliable channel overflow ( getting html file from configs dir )
Reply With Quote #1

Why when I type /medals it kicks me from the server and writes : Reliable channel overflow ?

PHP Code:
register_clcmd("say /medals","show_medals_info"); 
PHP Code:
public show_medals_info(id)
{
    if ( !
is_user_connectedid ) )
    {
        return 
PLUGIN_HANDLED;
    }
    static 
configdir[128];
    
get_configsdirconfigdircharsmaxconfigdir ) );
    
    
formatex configdircharsmaxconfigdir ), "%s/gunxpmod/gunxpmod_medals.html"configdir );
    
    if ( !
file_existsconfigdir ) )
    {
        
log_amx "Can't find gunxpmod_medals.html, please check your gunxpmod configs folder!" );
                
        return 
PLUGIN_CONTINUE;
    }
    
    
// Let us show the player the motd
    
show_motd idconfigdir"GunXpMod Medals" );
    
    return 
PLUGIN_CONTINUE;

xbatista is offline
Send a message via Skype™ to xbatista
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-19-2009 , 03:51   Re: Reliable channel overflow ( getting html file from configs dir )
Reply With Quote #2

file too big maybe ? :}

try with an empty file first, then you can blame the code if the error still persists
__________________
Hunter-Digital is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-19-2009 , 04:02   Re: Reliable channel overflow ( getting html file from configs dir )
Reply With Quote #3

hmm yes
How much chars MOTD can have?
xbatista is offline
Send a message via Skype™ to xbatista
Old 05-19-2009, 04:37
Arkshine
This message has been deleted by Arkshine. Reason: nvm
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-19-2009 , 05:52   Re: Reliable channel overflow ( getting html file from configs dir )
Reply With Quote #5

1528 I think... it's between 1024 and 2048 for sure :}

Also I read in the show_motd() function that above 1200 chars starts the overflow possibility
__________________
Hunter-Digital is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-19-2009 , 05:57   Re: Reliable channel overflow ( getting html file from configs dir )
Reply With Quote #6

Okey now I will know ;) thx
xbatista is offline
Send a message via Skype™ to xbatista
Reply



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 01:31.


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