AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Reliable channel overflow ( getting html file from configs dir ) (https://forums.alliedmods.net/showthread.php?t=92749)

xbatista 05-19-2009 03:41

Reliable channel overflow ( getting html file from configs dir )
 
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;



Hunter-Digital 05-19-2009 03:51

Re: Reliable channel overflow ( getting html file from configs dir )
 
file too big maybe ? :}

try with an empty file first, then you can blame the code if the error still persists :P

xbatista 05-19-2009 04:02

Re: Reliable channel overflow ( getting html file from configs dir )
 
hmm yes :D
How much chars MOTD can have?

Hunter-Digital 05-19-2009 05:52

Re: Reliable channel overflow ( getting html file from configs dir )
 
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

xbatista 05-19-2009 05:57

Re: Reliable channel overflow ( getting html file from configs dir )
 
Okey now I will know ;) thx


All times are GMT -4. The time now is 01:31.

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