AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Vip script error. (https://forums.alliedmods.net/showthread.php?t=233410)

Vaniusha 01-14-2014 13:40

Vip script error.
 
Code:

L 01/10/2014 - 09:10:37: [AMXX] Displaying debug trace (plugin "bbxvipsilver.amxx")
L 01/10/2014 - 09:10:37: [AMXX] Run time error 4: index out of bounds
L 01/10/2014 - 09:10:37: [AMXX]    [0] bbxvipsilver.sma::FwdPlayerDamage (line 87)

Code:

public FwdPlayerDamage(victim, inflictor, attacker, Float:damage, damagebits)
{
        if(inflictor == attacker
        && attacker != victim
        && g_bHasKnifeB[ attacker ]
        && is_user_alive(attacker)
        && get_user_weapon(attacker) == CSW_KNIFE )
{
        SetHamParamFloat(4, damage * 2.0);
}
if(inflictor == attacker
&& attacker != victim
&& g_bHasAk47[ attacker ]
&& is_user_alive(attacker)
&& get_user_weapon(attacker) == CSW_AK47 )
{
SetHamParamFloat(4, damage * 2.0);
}
if(inflictor == attacker
&& attacker != victim
&& g_bHasDeagle[ attacker ]
&& is_user_alive(attacker)
&& get_user_weapon(attacker) == CSW_DEAGLE )
{
SetHamParamFloat(4, damage * 2.0);
}


}

Can help me?

YamiKaitou 01-14-2014 14:13

Re: Vip script error.
 
Where is Line 87?

Vaniusha 01-15-2014 00:12

Re: Vip script error.
 
Code:

public FwdPlayerDamage(victim, inflictor, attacker, Float:damage, damagebits)

YamiKaitou 01-15-2014 00:31

Re: Vip script error.
 
That is not line 87


All times are GMT -4. The time now is 10:15.

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