Raised This Month: $ Target: $400
 0% 

[SOLVED]: Server crash


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


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:18.


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