Raised This Month: $ Target: $400
 0% 

Few errors, Any help?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 07-19-2014 , 14:07   Few errors, Any help?
Reply With Quote #1

Quote:
L 07/19/2014 - 19:134: [AMXX] Displaying debug trace (plugin "bm.amxx", version "1.0")
L 07/19/2014 - 19:134: [AMXX] Run time error 4: index out of bounds
L 07/19/2014 - 19:134: [AMXX] [0] bm.sma::ShowPropertiesMenu (line 4009)
L 07/19/2014 - 19:134: [AMXX] [1] bm.sma::SetPropertiesBlockAiming (line 578
L 07/19/2014 - 19:134: [AMXX] [2] bm.sma::HandleBlockMenu (line 4386)
L 07/19/2014 - 19:134: [AMXX] Displaying debug trace (plugin "bm.amxx", version "1.0")
L 07/19/2014 - 19:134: [AMXX] Run time error 4: index out of bounds
L 07/19/2014 - 19:134: [AMXX] [0]bm.sma::FwdCmdStart (line 1514)
PHP Code:
public FwdCmdStart(idhandle)
{
        if ( !
g_connected[id] ) return FMRES_IGNORED;
       
        static 
buttonsoldbuttons;
        
buttons =       get_uc(handleUC_Buttons);
        
oldbuttons =    entity_get_int(idEV_INT_oldbuttons);
       
        if ( 
g_alive[id]
        && ( 
buttons IN_USE )
        && !( 
oldbuttons IN_USE )
        && !
g_has_hud_text[id] )
        {
                static 
entbody;
                
get_user_aiming(identbody9999);
               
                if ( 
IsBlock(ent) )
                {
                        static 
block_type;
                        
block_type entity_get_int(entEV_INT_body);
                       
                        static 
property[5];
                       
                        static 
message[512], len;
                        
len format(messagecharsmax(message), "%s %s^nType: %s"PLUGIN_PREFIXPLUGIN_VERSIONg_block_names[block_type]);
                       
                        if ( 
g_property1_name[block_type][0] )
                        {
                                
GetProperty(ent1property);
                               
                                if ( ( 
block_type == BUNNYHOP
                                
|| block_type == ICEBHOP
                                
|| block_type == NO_SLOW_DOWN_BUNNYHOP )
                                && 
property[0] == '1' )
                                {
                                        
len += format(message[len], charsmax(message) - len"^n%s"g_property1_name[block_type]);
                                }
                                else if ( 
block_type == SLAP )
                                {
                                        
len += format(message[len], charsmax(message) - len"^n%s: %s"g_property1_name[block_type], property[0] == '3' "High" property[0] == '2' "Medium" "Low");
                                }
                                else if ( 
block_type == SUFFER
                                
|| block_type == HE_GRENADE
                                
|| block_type == FLASHBANG
                                
|| block_type == SMOKE_GRENADE )
                                {
                                        
len += format(message[len], charsmax(message) - len"^n%s: %s"g_property1_name[block_type], property[0] == '3' "Counter-Terrorists" property[0] == '2' "Terrorists" "All");
                                }
                                else if( 
block_type == WEAPON_BLOCK)                                   
                                {
                                        
len += format(message[len], charsmax(message) - len"^n%s: %s"g_property1_name[block_type], g_szWeaponNames2[str_to_num(property)]);
                                }
                                else if ( 
block_type != BUNNYHOP
                                
&& block_type != ICEBHOP
                 
&& block_type != NO_SLOW_DOWN_BUNNYHOP )
                                {
                                        
len += format(message[len], charsmax(message) - len"^n%s: %s"g_property1_name[block_type], property);
                                }
                        }
                        if ( 
g_property2_name[block_type][0] )
                        {
                                
GetProperty(ent2property);
                               
                                
len += format(message[len], charsmax(message) - len"^n%s: %s"g_property2_name[block_type], property);
                        }
                        if ( 
g_property3_name[block_type][0] )
                        {
                                
GetProperty(ent3property);
                               
                                if ( 
block_type == BOOTS_OF_SPEED
                                
|| property[0] != '0'
                                
&& !( property[0] == '2' && property[1] == '5' && property[2] == '5' ) )
                                {
                                        
len += format(message[len], charsmax(message) - len"^n%s: %s"g_property3_name[block_type], property);
                                }
                        }
                        if ( 
g_property4_name[block_type][0] )
                        {
                                
GetProperty(ent4property);
                                if(
block_type == WEAPON_BLOCK)
                                {
                                        
len += format(message[len], charsmax(message) - len"^n%s: %s"g_property4_name[block_type], property[0] == '3' "All" property[0] == '2' "Counter-Terrorists" "Terrorists");
                                }
                                else
                                {
                                        
len += format(message[len], charsmax(message) - len"^n%s: %s"g_property4_name[block_type], property[0] == '1' "Yes" "No");
                                }
                        }
                       
                        
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
                        
show_hudmessage(idmessage);
                               
                }
                else if ( 
IsLight(ent) )
                {
                        static 
property1[5], property2[5], property3[5], property4[5];
                       
                        
GetProperty(ent1property1);
                        
GetProperty(ent2property2);
                        
GetProperty(ent3property3);
                        
GetProperty(ent4property4);
                       
                        
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
                        
show_hudmessage(id"Type: Light^nRadius: %s^nColor Red: %s^nColor Green: %s^nColor Blue: %s"property1property2property3property4);
                }
                else if ( 
IsBox(ent) )
                {
                        static 
property1[5], property2[5], property3[5], property4[5];
                       
                        
GetProperty(ent1property1);
                        
GetProperty(ent2property2);
                        
GetProperty(ent3property3);
                        
GetProperty(ent4property4);
                       
                        
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
                        
show_hudmessage(id"Type: Box^nRadius: %s^nColor Red: %s^nColor Green: %s^nColor Blue: %s"property1property2property3property4);    
                       
                }
        }
        if ( !
g_grabbed[id] ) return FMRES_IGNORED;
       
        if ( ( 
buttons IN_JUMP )
        && !( 
oldbuttons IN_JUMP ) ) if ( g_grab_length[id] > 72.0 g_grab_length[id] -= 16.0;
       
        if ( ( 
buttons IN_DUCK )
        && !( 
oldbuttons IN_DUCK ) ) g_grab_length[id] += 16.0;
       
        if ( ( 
buttons IN_ATTACK )
        && !( 
oldbuttons IN_ATTACK ) ) CmdAttack(id);
       
        if ( ( 
buttons IN_ATTACK2 )
        && !( 
oldbuttons IN_ATTACK2 ) ) CmdAttack2(id);
       
        if ( ( 
buttons IN_RELOAD )
        && !( 
oldbuttons IN_RELOAD ) )
        {
                
CmdRotate(id);
                
set_uc(handleUC_Buttonsbuttons & ~IN_RELOAD);
        }
       
        if ( !
is_valid_ent(g_grabbed[id]) )
        {
                
CmdRelease(id);
                return 
FMRES_IGNORED;
        }
       
        if ( !
IsBlockInGroup(idg_grabbed[id])
        || 
g_group_count[id] < )
        {
                
MoveGrabbedEntity(id);
                return 
FMRES_IGNORED;
        }
       
        static 
block;
        static 
Float:move_to[3];
        static 
Float:offset[3];
        static 
Float:origin[3];
       
        
MoveGrabbedEntity(idmove_to);
       
        for ( new 
0<= g_group_count[id]; ++)
        {
                
block g_grouped_blocks[id][i];
               
                if ( !
IsBlockInGroup(idblock) ) continue;
               
                
entity_get_vector(blockEV_VEC_vuser1offset);
               
                
origin[0] = move_to[0] - offset[0];
                
origin[1] = move_to[1] - offset[1];
                
origin[2] = move_to[2] - offset[2];
               
                
MoveEntity(idblockoriginfalse);
        }
       
        return 
FMRES_IGNORED;

PHP Code:
ShowPropertiesMenu(ident)
{
        new 
menu[256], title[32], entry[64], property[5], line1[3], line2[3], line3[3], line4[3], numblock_type;
       
        
block_type entity_get_int(entEV_INT_body);
       
        
format(titlecharsmax(title), "\r[%s] \ySet Properties^n^n"PLUGIN_PREFIX);
        
add(menucharsmax(menu), title);
       
        if ( 
g_property1_name[block_type][0] )
        {
                
GetProperty(ent1property);
               
                if ( 
block_type == BUNNYHOP
                
|| block_type == ICEBHOP
                
|| block_type == NO_SLOW_DOWN_BUNNYHOP )
                {
                        
format(entrycharsmax(entry), "\r1. \w%s: %s^n"g_property1_name[block_type], property[0] == '1' "\yOn" "\rOff");
                }
                else if ( 
block_type == SLAP )
                {
                        
format(entrycharsmax(entry), "\r1. \w%s: \y%s^n"g_property1_name[block_type], property[0] == '3' "High" property[0] == '2' "Medium" "Low");
                }
                else if ( 
block_type == WEAPON_BLOCK )
                {
                        
format(entrycharsmax(entry), "\r1. \w%s: \y%s^n"g_property1_name[block_type], g_szWeaponNames2[str_to_num(property)]);
                }
                else if ( 
block_type == SUFFER
                
|| block_type == HE_GRENADE
                
|| block_type == FLASHBANG
                
|| block_type == SMOKE_GRENADE )
                {
                        
format(entrycharsmax(entry), "\r1. \w%s: \y%s^n"g_property1_name[block_type], property[0] == '3' "Counter-Terrorists" property[0] == '2' "Terrorists" "All");
                }
                else
                {
                        
format(entrycharsmax(entry), "\r1. \w%s: \y%s^n"g_property1_name[block_type], property);
                }
               
                
add(menucharsmax(menu), entry);
        }
        else
        {
                
format(line1charsmax(line1), "^n");
        }
       
        if ( 
g_property2_name[block_type][0] )
        {
                if ( 
g_property1_name[block_type][0] )
                {
                        
num 2;
                }
                else
                {
                        
num 1;
                }
               
                
GetProperty(ent2property);
               
                
format(entrycharsmax(entry), "\r%d. \w%s: \y%s^n"numg_property2_name[block_type], property);
               
                
add(menucharsmax(menu), entry);
        }
        else
        {
                
format(line2charsmax(line2), "^n");
        }
       
        if ( 
g_property3_name[block_type][0] )
        {
                if ( 
g_property1_name[block_type][0] && g_property2_name[block_type][0] )
                {
                        
num 3;
                }
                else if ( 
g_property1_name[block_type][0]
                || 
g_property2_name[block_type][0] )
                {
                        
num 2;
                }
                else
                {
                        
num 1;
                }
               
                
GetProperty(ent3property);
               
                if ( 
block_type == BOOTS_OF_SPEED
                
|| property[0] != '0' && !( property[0] == '2' && property[1] == '5' && property[2] == '5' ) )
                {
                        
format(entrycharsmax(entry), "\r%d. \w%s: \y%s^n"numg_property3_name[block_type], property);
                }
                else
                {
                        
format(entrycharsmax(entry), "\r%d. \w%s: \rOff^n"numg_property3_name[block_type]);
                }
               
                
add(menucharsmax(menu), entry);
        }
        else
        {
                
format(line3charsmax(line3), "^n");
        }
       
        if ( 
g_property4_name[block_type][0] )
        {
                if ( 
g_property1_name[block_type][0] && g_property2_name[block_type][0] && g_property3_name[block_type][0] )
                {
                        
num 4;
                }
                else if ( 
g_property1_name[block_type][0] && g_property2_name[block_type][0]
                || 
g_property1_name[block_type][0] && g_property3_name[block_type][0]
                || 
g_property2_name[block_type][0] && g_property3_name[block_type][0] )
                {
                        
num 3;
                }
                else if ( 
g_property1_name[block_type][0]
                || 
g_property2_name[block_type][0]
                || 
g_property3_name[block_type][0] )
                {
                        
num 2;
                }
                else
                {
                        
num 1;
                }
               
                
GetProperty(ent4property);
                if(
block_type == WEAPON_BLOCK)
                {
                        
format(entrycharsmax(entry), "\r%d. \w%s: \y%s^n"numg_property4_name[block_type], property[0] == '3' "All" property[0] == '2' "Counter-Terrorists" "Terrorists");
                }
                else
                {
                        
format(entrycharsmax(entry), "\r%d. \w%s: %s^n"numg_property4_name[block_type], property[0] == '1' "\yYes" "\rNo");
                }
                
add(menucharsmax(menu), entry);
        }
        else
        {
                
format(line4charsmax(line4), "^n");
        }
       
        
g_property_info[id][1] = ent;
       
        
add(menucharsmax(menu), line1);
        
add(menucharsmax(menu), line2);
        
add(menucharsmax(menu), line3);
        
add(menucharsmax(menu), line4);
        
add(menucharsmax(menu), "^n^n^n^n^n^n\r0. \wBack");
       
        
show_menu(idg_keys_properties_menumenu, -1"BmPropertiesMenu");

PHP Code:
SetPropertiesBlockAiming(id)
{
        
ShowPropertiesMenu(ident);
       
        return 
PLUGIN_HANDLED;


Line 4009:
PHP Code:
                       format(entrycharsmax(entry), "\r1. \w%s: \y%s^n"g_property1_name[block_type], g_szWeaponNames2[str_to_num(property)]); 
Line: 1514
PHP Code:
                                        len += format(message[len], charsmax(message) - len"^n%s: %s"g_property1_name[block_type], g_szWeaponNames2[str_to_num(property)]); 

Last edited by proffs; 07-19-2014 at 15:26.
proffs 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 13:19.


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