Raised This Month: $ Target: $400
 0% 

SZ_GetSpace


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 06-10-2010 , 10:17   SZ_GetSpace
Reply With Quote #1

what can it mean ?

I use team switch plugin and when there's more than 20 player and team switches i get this error.

Code:
SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Reliable Datagram
Code:

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define OFFSET_TEAM    114

enum
{
    
TEAM_NULL,
    
TEAM_T,
    
TEAM_CT,
    
TEAM_SPECTATOR
}

new 
g_iCounter 0;
new 
p_Rounds;
new 
g_Msg_TeamInfo;
new 
g_iMaxPlayers;

public 
plugin_init()
{
    
register_plugin"Team Switch""2.0""TBagT" );
    
    
p_Rounds register_cvar"ats_rounds""3" );
    
register_event("TextMsg""RoundRestart_Attempt""a""2&#Game_C""2&Game_W");
    
register_logevent("logevent_round_start2"2"1=Round_Start")
    
register_logevent("logevent_round_end2"2"1=Round_End")
    
g_iMaxPlayers get_maxplayers();
    
g_Msg_TeamInfo get_user_msgid"TeamInfo" );

         
register_dictionary("switch.txt");
}

public 
server_changelevelmap[] )
{
    
g_iCounter 0;
}

public 
plugin_pause()
{
    
g_iCounter 0;
}

public 
RoundRestart_Attempt()
{
    
g_iCounter 0;
}
public 
logevent_round_end2()
{
    if( 
get_playersnum() > )
        { 
        if ( 
g_iCounter >= get_pcvar_nump_Rounds ) )
        {
            
g_iCounter 0;
            
            new 
teamoppTeam;
            for( new 
<= g_iMaxPlayers i++ )
            {
                if( !
is_user_connected) )    continue;
                
                
team get_user_team);
                if( 
team == TEAM_SPECTATOR )    continue;
        
                
set_hudmessage20000, -1.0, -1.016.012.0 );
                
show_hudmessage0"%L"LANG_SERVER"SWITCH" );
        
                
oppTeam team 1;
                
fm_set_user_teamioppTeam );
            }
        }
        else
        {
            
set_hudmessage01000, -1.0, -1.016.012.0 );
            
show_hudmessage0"%L %d"LANG_SERVER"LEFT", ( get_pcvar_nump_Rounds ) - g_iCounter) );
        }
    }
    
}
public 
logevent_round_start2()

    
g_iCounter++; 
}
fm_set_user_teamindexiTeam )
{
    static const 
Teams[][] =
    {
        
""// NULL
        
"TERRORIST",
        
"CT"
    
}
    
    
set_pdata_intindexOFFSET_TEAMiTeam );
    
dllfuncDLLFunc_ClientUserInfoChangedindexengfuncEngFunc_GetInfoKeyBufferindex ) );
    
    
message_beginMSG_ONE_UNRELIABLEg_Msg_TeamInfo, { 00}, index );
    
write_byteindex );
    
write_stringTeamsiTeam ] );
    
message_end();
    
    return 
1;

DoviuX is offline
Send a message via Skype™ to DoviuX
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 06-10-2010 , 13:00   Re: SZ_GetSpace
Reply With Quote #2

Use the f*cking search button! -,-
http://forums.alliedmods.net/showthread.php?t=129018
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-10-2010 , 14:36   Re: SZ_GetSpace
Reply With Quote #3

It has something todo with the models changing, if you add a small delay from 0.1 second between the 2 teams the server will atleast not crash.
__________________
I am out of order!
grimvh2 is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 06-11-2010 , 04:10   Re: SZ_GetSpace
Reply With Quote #4

grimvh2

I don't understand what you mean can you show any example ?
DoviuX is offline
Send a message via Skype™ to DoviuX
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 06-11-2010 , 06:31   Re: SZ_GetSpace
Reply With Quote #5

Quote:
Originally Posted by Brreaker View Post
Use the f*cking search button! -,-
http://forums.alliedmods.net/showthread.php?t=129018
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
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 17:15.


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