Raised This Month: $71 Target: $400
 17% 

FATAL ERROR (shutting down): SZ_GetSpace


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 03-26-2012 , 18:41   FATAL ERROR (shutting down): SZ_GetSpace
Reply With Quote #1

I just made a plugin for a new boss type and it's 50% of this boss vs 50% of players. But, when I do this it really messes up and crashes the server almost instantly. I am quite sure it's from an error I am doing or something, so I ask for your guys' help.

Error: FATAL ERROR (shutting down): SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Spectator Buffer


Code:

PHP Code:
public fw_CmdStart(iduc_handleseed
{
    if (!
g_hasfirebreath[id] || !flag_get(g_Isvolariid))
        return 
FMRES_IGNORED
    
    
new buttons get_uc(uc_handleUC_Buttons)
    if (
buttons IN_ATTACK2)
    {
        
g_firebreath[id] = 1
    
        buttons 
&= ~IN_ATTACK2
        set_uc
(uc_handleUC_Buttonsbuttons)
    } 
    else 
        
g_firebreath[id] = 0
        
    
return FMRES_HANDLED
}

public 
fw_PlayerPostThink(id)
{
    if (!
is_user_alive(id) || !flag_get(g_Isvolariid))
        return 
FMRES_IGNORED
            
    
if (!g_hasfirebreath[id])
        return 
FMRES_IGNORED
    
    
if (pev(idpev_waterlevel) > 1)
        return 
FMRES_IGNORED

    
if (g_firebreath[id])
    {
        if (
g_fBreathAmt[id] > 0)
        {
            if ((
g_Delay[id] + 0.2) < get_gametime())
            {
                
g_fBreathAmt[id] -= 1
                g_Delay
[id] = get_gametime()
            }
            
            new 
Float:fOrigin[3], Float:fVelocity[3]
            
entity_get_vector(id,EV_VEC_originfOrigin)
            
VelocityByAim(id35fVelocity)
        
            new 
Float:fTemp[3], iFireOrigin[3]
            
xs_vec_add(fOriginfVelocityfTemp)
            
FVecIVec(fTempiFireOrigin)
            
            new 
Float:fFireVelocity[3], iFireVelocity[3]
            
VelocityByAim(idget_pcvar_num(g_fb_damage_dis), fFireVelocity)
            
FVecIVec(fFireVelocityiFireVelocity)
            
            
emit_fire(idiFireOriginiFireVelocity)
            
            
show_fBreath_percentage(id)
            
direct_damage(id)
            
indirect_damage(id)
            
custom_weapon_shot(wpn_ftid)
        } 
        else
        {
            if (!
informedPlayer[id])
            {
                
print_chatColor(id,"\g[Volari] \tYou have no more Flame Breath!")
                
informedPlayer[id] = 1
            
}
        }
    }
    return 
FMRES_IGNORED
}

public 
think_firebreath(ent)
{
    if (
is_valid_ent(ent) && entity_get_float(entEV_FL_health) < 950.0
    {
        new 
Float:fOrigin[3], iOrigin[3]
        
entity_get_vector(entEV_VEC_originfOrigin)
        
FVecIVec(fOriginiOrigin)
    
        
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
        
write_byte(99)
        
write_short(ent)
        
message_end()
    
        
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
        
write_byte(3)
        
write_coord(iOrigin[0])
        
write_coord(iOrigin[1])
        
write_coord(iOrigin[2])
        
write_short(sprite_xplo)
        
write_byte(50)
        
write_byte(15)
        
write_byte(0)
        
message_end()
        
        
entity_set_int(entEV_INT_effects1)
        
        
RadiusDamage(fOriginget_pcvar_num(g_fb_xplode_dmg), entity_get_int(entEV_INT_iuser4))
        
remove_entity(ent)
    }
    
    if (
is_valid_ent(ent)) 
        
entity_set_float(entEV_FL_nextthinkhalflife_time() + 0.2)
}

public 
emit_fire(idorigin[3], velocity[3])
{
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(120)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(velocity[0])
    
write_coord(velocity[1])
    
write_coord(velocity[2] + 5)
    
write_short(sprite_fire)
    
write_byte(1)
    
write_byte(10)
    
write_byte(1)
    
write_byte(5)
    
message_end()
    
entity_set_int(idEV_INT_effects1)
}

public 
direct_damage(id)
{
    new 
entbody
    get_user_aiming
(identbodyget_pcvar_num(g_fb_damage_dis) + 500)
    
    if ((
33 ent 0) && is_user_alive(ent))
    {
        if (!
flag_get(g_Isvolariid) != !flag_get(g_Isvolarient)) 
        {
            
damage_user(identget_pcvar_num(g_fb_damage))
            
custom_weapon_dmg(wpn_ftidentget_pcvar_num(g_fb_damage))
        }
    }
}

public 
indirect_damage(id)
{
    new 
Players[32], iNum
    get_players
(PlayersiNum"a")
    for (new 
0iNum; ++i) if(id != Players[i])
    {
        new 
target Players[i]
    
        new 
Float:fOrigin[3], Float:fOrigin2[3]
        
entity_get_vector(id,EV_VEC_originfOrigin)
        
entity_get_vector(targetEV_VEC_originfOrigin2)
            
        new 
temp[3], Float:fAim[3]
        
get_user_origin(idtemp3)
        
IVecFVec(tempfAim)
        
        new 
Float:fDistance get_pcvar_num(g_fb_damage_dis) + 500.0
        
if (get_distance_f(fOriginfOrigin2) > fDistance)
            continue 
        
        new 
iDistance get_distance_to_line(fOriginfOrigin2fAim)
        if (
iDistance get_pcvar_num(g_fb_splash_dis) || iDistance || !fm_is_ent_visible(idtarget))
            continue 
            
        if (!
flag_get(g_Isvolariid) != !flag_get(g_Isvolaritarget))
        {
            
damage_user(idtargetget_pcvar_num(g_fb_damage))
            
custom_weapon_dmg(wpn_ftidtargetget_pcvar_num(g_fb_damage))
        }
    }
}

public 
show_fBreath_percentage(id)
{
    
set_hudmessage(25517000.910.95__1.0__4)
    
show_hudmessage(id"Flame Breath: %d%%"get_percent(g_fBreathAmt[id], get_pcvar_num(g_fb_fBreathAmt)))
}

stock damage_user(idvictimdamage)
{
    new 
iHealth get_user_health(victim)
    if (
iHealth damage
        
fakedamage(victim"weapon_firebreath"float(damage), DMG_BURN)
    else
    {
        
user_silentkill(victim)
        
//ExecuteHam(Ham_TakeDamage, victim, id, id, damage, DMG_GENERIC)
        //ExecuteHam(Ham_TakeDamage, victim, id, id, damage, DMG_BURN)
        
make_deathmsg(idvictim0"firebreath")
        
        new 
iOrigin[3]
        
get_user_origin(victimiOrigin0)
        
        
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
        
write_byte(17)
        
write_coord(iOrigin[0])
        
write_coord(iOrigin[1])
        
write_coord(iOrigin[2] + 10)
        
write_short(sprite_burn)
        
write_byte(30)
        
write_byte(40)
        
message_end()
            
        
fm_set_user_frags(idget_user_frags(id) + get_pcvar_num(g_fb_extra_frags))
        
        
message_begin(MSG_ALLg_msgScoreInfo
        
write_byte(id
        
write_short(get_user_frags(id)) 
        
write_short(get_user_deaths(id)) 
        
write_short(0
        
write_short(get_user_team(id)) 
        
message_end() 
        
        
message_begin(MSG_ALLg_msgScoreInfo
        
write_byte(victim
        
write_short(get_user_frags(victim))
        
write_short(get_user_deaths(victim))
        
write_short(0)
        
write_short(get_user_team(victim))
        
message_end()
    }


Last edited by Y060N; 03-26-2012 at 22:07.
Y060N is offline
iBrazilian
Senior Member
Join Date: May 2011
Old 03-27-2012 , 18:01   Re: FATAL ERROR (shutting down): SZ_GetSpace
Reply With Quote #2

I had a similar problem but could not figure it out
__________________
Pokemod Season 5 [ |||||||||| Complete]
iBrazilian is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 03-28-2012 , 17:46   Re: FATAL ERROR (shutting down): SZ_GetSpace
Reply With Quote #3

Yeah just hoping someone can help me out with this.
Y060N is offline
iBrazilian
Senior Member
Join Date: May 2011
Old 03-28-2012 , 23:19   Re: FATAL ERROR (shutting down): SZ_GetSpace
Reply With Quote #4

Sorry, I had almost gotten this error fixed but then i gave up on it.
__________________
Pokemod Season 5 [ |||||||||| Complete]
iBrazilian is offline
Reply


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 23:36.


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