View Single Post
nicke011
New Member
Join Date: Mar 2020
Old 04-07-2020 , 19:49   Re: Amx_super debug run time error
Reply With Quote #3

I am getting the same error on my server as well.

Code:
L 04/07/2020 - 23:19:57: [AMXX] Displaying debug trace (plugin "amx_super-serious.amxx")
L 04/07/2020 - 23:19:57: [AMXX] Run time error 4: index out of bounds 
L 04/07/2020 - 23:19:57: [AMXX]    [0] amx_super-serious.sma::join_team (line 1247)
Line 1247 is part of "Team locker" function (in red):
Code:
/* Team locker
 *------------
*/
public team_select(id, key) 
{ 
	if(g_bBlockJoin[key])
	{
		engclient_cmd(id, "chooseteam");
		
		return PLUGIN_HANDLED;
	} 		
	
	return PLUGIN_CONTINUE;
} 

public join_team(id) 
{		
	new szArg[3];
	read_argv(1, szArg, charsmax(szArg));
	
	if(g_bBlockJoin[str_to_num(szArg) - 1])
	{
		engclient_cmd(id, "chooseteam");
		
		return PLUGIN_HANDLED;
	} 

	return PLUGIN_CONTINUE; 
}
Server crashed a couple of times, so I temporarily disabled this plugin. However, we are using some of the AMX commands that were part of it, so it is somewhat a hassle.
nicke011 is offline