Raised This Month: $ Target: $400
 0% 

CS TeamSwap / FSB_ALLOWOVERFLOW


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 09-14-2015 , 05:50   CS TeamSwap / FSB_ALLOWOVERFLOW
Reply With Quote #1

Hi. I use this test-code for Swap Players teams:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>

public plugin_init()
{
    
register_plugin("Test""0.1""Phantomas")
    
register_clcmd("say t""clcmdT");
}

team_swap(idCsTeams:team)
{
    if(
team == CS_TEAM_T)
    {
        
//cs_set_user_team(id, CS_TEAM_CT, CS_DONTCHANGE)
        
set_pdata_int(id1142)
    } else {
        
//cs_set_user_team(id, CS_TEAM_T, CS_DONTCHANGE)
        
set_pdata_int(id1141)
    }
}

public 
clcmdT(id)
{
    new 
players[32], pnumplr
    get_players
(playerspnum"h")
    for (new 
ii<pnumi++)
    {
        
plr players[i]
        new 
CsTeams:team
        team 
cs_get_user_team(plr)
        if(
team == CS_TEAM_T || CS_TEAM_CT) {
            
team_swap(plrteam)
        }
    }

And when I test it on server with ~10 players (5x5), it's okay, all works fine.
But when server have more players (I test 16x16 with PODBots), then server crashed at new round start moment (after swapping):

Quote:
SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Reliable Datagram
Any ideas how to bypass it? cs_set_user_team() got crash too.
Phant is offline
Send a message via ICQ to Phant
 



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 22:08.


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