This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Fatal Error Related To OverFlow


Post New Thread Reply   
 
Thread Tools Display Modes
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-05-2013 , 10:40   Re: Fatal Error Related To OverFlow
Reply With Quote #11

Quote:
Originally Posted by ^SmileY View Post
This problem is not fixed in last dev builds?
Last builds just came with more bugs, like model limit etc...
If someone thinks i run non-steam, its cz server and i can provide my server ip lol
__________________
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-05-2013 , 10:52   Re: Fatal Error Related To OverFlow
Reply With Quote #12

Quote:
Originally Posted by Jhob94 View Post
Last builds just came with more bugs, like model limit etc...
"dev build" refers to AMX Mod X. Also, a model limit is not a bug and was not imposed in the latest HLDS update.
__________________
fysiks is offline
santuzzu
Junior Member
Join Date: May 2013
Old 11-05-2013 , 13:22   Re: Fatal Error Related To OverFlow
Reply With Quote #13

this code is tested on 32/32 furien server,no errors and no crash,no extra bull...t module

PHP Code:
///
///
///
///credits to Tirant         https://forums.alliedmods.net/showpost.php?p=1289654&postcount=14
///
///
///
#include <  amxmodx  >
#include <  cstrike  >


#pragma semicolon 1


#define PLUGIN "Delayed Furien TeamSwap"
#define VERSION "1.2b"
#define AUTHOR "Askhanar"

#define        SWITCH_TASK        112233

public plugin_init(    )
{
    
register_plugin(  PLUGIN,  VERSION,  AUTHOR );
    
register_event"SendAudio",  "ev_SendAudioCounterWin",  "a",  "1=0",  "2=%!MRAD_ctwin"  );
    
}

public 
ev_SendAudioCounterWin(    ) 
{
    
    new 
iPlayers[  32  ],  iNum;
    
get_players(  iPlayers,  iNum,  "ch" );
    
    if(  
iNum  
    {
        new  
id;
        
        for(  --
iNum;  iNum  >=  0;  iNum--  ) 
        {
            
id  =  iPlayers[  iNum  ];
            
BeginDelayedTeamChange(  id  );
            
        }
    }
}

public 
BeginDelayedTeamChange(  id  )
{
    
    switch(  
id  
    { 
        
        case  
1..6:  set_task(  0.1"ChangeUserTeamWithDelay",  id  +  SWITCH_TASK  ); 
        case  
7..13:  set_task(  0.2"ChangeUserTeamWithDelay",  id  +  SWITCH_TASK  ); 
        case  
14..20:  set_task(  0.3"ChangeUserTeamWithDelay",  id  +  SWITCH_TASK  ); 
        case  
21..26:  set_task(  0.4"ChangeUserTeamWithDelay",  id  +  SWITCH_TASK  ); 
        case  
27..32:  set_task(  0.5"ChangeUserTeamWithDelay",  id  +  SWITCH_TASK  ); 
    } 
}

public 
ChangeUserTeamWithDelay(  id  )
{
    
    
id  -=  SWITCH_TASK;
    if(  !
is_user_connected(  id  )  )  return 1;
    
    switch(  
cs_get_user_team(  id  )   ) 
    {
        
        case  
CS_TEAM_T:  cs_set_user_team(  id,  CS_TEAM_CT  );
        case  
CS_TEAM_CT:cs_set_user_team(  id,  CS_TEAM_T  );
            
    }
    
    return 
0;


Last edited by santuzzu; 11-05-2013 at 13:24.
santuzzu is offline
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 10:14.


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