Raised This Month: $ Target: $400
 0% 

[Solved]Index out of bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 07-13-2010 , 17:50   [Solved]Index out of bounds
Reply With Quote #1

Code:
L 07/13/2010 - 18:27:05: [AMXX] Run time error 4: index out of bounds 
L 07/13/2010 - 18:27:05: [AMXX] [0] Mix_Maker.sma::cmdSayRestart (line 930)
PHP Code:
public cmdSayRestart(id,level,cid) {
    
    if(!
cmd_access(id,level,cid,1))
        return 
PLUGIN_HANDLED
    
    
new said[192]
    
read_args(said,191)
    
remove_quotes(said)
    
    if(!
strlen(said) || said[0] == ' ')
        return 
PLUGIN_HANDLED
        
    
new name[32]
    
get_user_name(id,name,31)
    
    new 
Restart[11]
    new 
Tmp[11]
    
strbreak(said,Restart,10,Tmp,10)
    
    new 
Value str_to_num(Tmp)

    new const 
Restrts[][] = 
    { 
        
"/restart","!restart",".restart",
        
"/rr","!rr",".rr",
        
"/r","!r",".r" 
    
}
    
    for(new 
0;<= sizeof (Restrts);i++)
    {
        if(
equali(Restart,Restrts[i]))
        {
            if(!
is_str_num(Tmp) || Value 60)
                
Value 1
                    
            
if(!Tmp[0])
                
set_pcvar_num(pRestart,1)
            else
                
set_pcvar_num(pRestart,Value)
                
            
ChatColor(0,"%s !yADMIN %s : Restarteo la ronda",szPrefix,name)
            return 
PLUGIN_HANDLED
        
}
    }
    return 
PLUGIN_CONTINUE

#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
 



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 07:13.


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