View Single Post
Author Message
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 05-14-2019 , 05:11   index out of bounds
Reply With Quote #1

How can fix this error?

L 05/14/2019 - 11:57:59: [AMXX] Displaying debug trace (plugin "rush.amxx", version "1.0")
L 05/14/2019 - 11:57:59: [AMXX] Run time error 4: index out of bounds
L 05/14/2019 - 11:57:59: [AMXX] [0] text6LXJvq.sma::TakeDMG (line 366)

Code:
public hamTouchWeapon(id)
{
	return 4;
}
public TakeDMG(victim, idinflictor, attacker, Float:damage, Float:direction[3], tracehandle, damagebits)
{
	if (victim != attacker)
	{
		if (in_Duel[victim] && !in_Duel[attacker])

		{ 

			return 4; // This Line 

		}
	}
	return 1;
}

Last edited by Saint Sinner; 05-14-2019 at 05:19.
Saint Sinner is offline