Raised This Month: $ Target: $400
 0% 

[SOLVED]: Server crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 11-07-2013 , 07:11   [SOLVED]: Server crash
Reply With Quote #1

I create that codes,good compile...

but, server crashes after the 10 seconds

I suspect here.

PHP Code:
public plugin_init() {
    
register_logevent("EventRoundStart"2"1=Round_Start");
}
public 
EventRoundStart() {
    
set_task(10.0,"TaskChoose")
}
public 
TaskChoose( ) {
    new 
Players[32], onum;
    
get_players(Playersonum"ah");
    
    if(
onum <= 5) {
        new 
zombie Players[random_num(0onum)];
        
set_task(1.0,"set_user_zombie",zombie);
        
        for(new 
ionumi++) {
            new 
tempid Players[i]
            if(
tempid != zombie) {
                if(
get_user_team(tempid) != 2) {
                    
cs_set_user_team(tempidCS_TEAM_CT)
                    
cs_reset_user_model(tempid)
                }
            }
        }
    } else if(
onum && onum <= 10) {
        new 
zombie Players[random_num(0onum)];
        new 
zombie2 Players[random_num(0onum)];
        while(
zombie == zombie2) {
            
zombie2 Players[random_num(0onum)];
        }
        
        
set_task(1.0,"set_user_zombie",zombie);
        
set_task(1.3,"set_user_zombie",zombie2);
        
        for(new 
ionumi++) {
            new 
tempid Players[i];
            
            if(
tempid != zombie || tempid != zombie2) {
                if(
get_user_team(tempid) != 2) {
                    
cs_set_user_team(tempidCS_TEAM_CT);
                    
cs_reset_user_model(tempid)
                }
            }
        }
    } else if(
onum >= 10 && onum <= get_maxplayers()) {
        new 
zombie Players[random_num(0onum)];
        new 
zombie2 Players[random_num(0onum)];
        new 
zombie3 Players[random_num(0onum)];
        while(
zombie == zombie2) {
            
zombie2 Players[random_num(0onum)];
        }
        while(
zombie2 == zombie3 || zombie == zombie3) {
            
zombie3 Players[random_num(0onum)];
        }
        
        
set_task(1.0,"set_user_zombie",zombie);
        
set_task(1.3,"set_user_zombie",zombie2);
        
set_task(1.6,"set_user_zombie",zombie3);
        
        for(new 
ionumi++) {
            new 
tempid Players[i];
            
            if(
tempid != zombie || tempid != zombie2 || zombie3) {
                if(
get_user_team(tempid) != 2) {
                    
cs_set_user_team(tempidCS_TEAM_CT);
                    
cs_reset_user_model(tempid)    
                }
            }
        }
    }
    return 
PLUGIN_CONTINUE;
}  
public 
set_user_zombie(id) {
    
cs_set_user_nvg(id,1);
    
engclient_cmd(id"nightvision");
    
set_user_health(id500);
    
cs_set_user_model(id"zombie");

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

Last edited by wTf.; 11-07-2013 at 10:29.
wTf. is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 11-07-2013 , 08:44   Re: [Help]: Server crash
Reply With Quote #2

See if these links help ..

https://forums.alliedmods.net/showthread.php?t=3448

http://forums.alliedmods.net/showthread.php?t=124267

Code:
SZ_GetSpace: overflow on Client Datagram WARNING: msg overflowed for nickname 
SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Reliable Datagram 
SZ_GetSpace: overflow on SVC_RuleInfo 
SZ_getspace: overflow on netchan->message

This error occurs when server handle to many CVARs (you have to many  plugins), server query from the outside world cannot exceed 2048 bytes,  so the CVAR info shouldn't return more than that.
The problem can also occurs when programs like HLSW and/or other Server  Info Tools (statistical, monitoring, etc.) requesting information from  your server, and of course clients with whom server constantly conducts  information interchange. With Condition Zero you get many extra CVARs  specially with BOTs which makes the problem worse. 
Solution: 
1) disable all unnecessary plugins (disable them one by one and restarting server, while you don't find a problematic one)
2) if you using metamod v1.19, try to replace that with metamod -p
3) install NoSeeVar plugin for MetaMod (nsv_mm.dll/so) which removes the  excess unused variables and cleans the place under the appropriate one.
also..

Search! Such topics are already made. i made it easy for you. open the link and click the links from alliedmods only
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 11-07-2013 , 10:31   Re: [Help]: Server crash
Reply With Quote #3

Thnx i have tried...but, problem continues...
wTf. 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 23:18.


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