Raised This Month: $ Target: $400
 0% 

index out of bounds.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 03-04-2009 , 09:05   Re: index out of bounds.
Reply With Quote #8

Quote:
2. Just use the macro wich i and ark have post.
What? ^^ don't understand

Okey full code:
PHP Code:
 new counted_hit CriticalLevel[i_Attacker] * ch_perlevel
    
new counted_health_vampire VampireLevel[i_Attacker] * vm_perlevel
    
new Float:counted_dmg random_float(43.5105.5)
   if(
is_user_connected(i_Attacker) || is_user_connected(i_Victim)) 
    {     
        if( ( 
<= i_Victim <= g_maxplayers) && ( <= i_Attacker <= g_maxplayers) ) 
        { 
                    if(
random_num(099) < counted_hit && CriticalLevel[i_Attacker] > && get_pcvar_num(ch_enable) == && ateam == && ateam != get_user_team i_Victim ) && i_Victim != i_Attacker
            { 
                new 
floatrounded floatround(damage
                new 
floatrounded2 floatround(counted_dmg
                
ExecuteHam(Ham_TakeDamagei_Victim0i_Attackercounted_dmg0); 
                
client_printcolor(i_Attacker"/ctrNormal damage:/g%d, /ctrCritical damage:/g%d, /ctrTotal damage:/g%d."floatroundedfloatrounded2floatrounded floatrounded2
            } 
            } 

xbatista is offline
Send a message via Skype™ to xbatista
 



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 16:58.


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