Raised This Month: $ Target: $400
 0% 

War3ft Mod new version error.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Zore93
New Member
Join Date: Feb 2022
Old 02-01-2022 , 13:26   War3ft Mod new version error.
Reply With Quote #1

Hi Guys,

I work at a new version for war3ft mod for CS 1.6 server.

I have just one error, with debug enabled:
Code:
L 02/01/2022 - 20:17:58: [AMXX] Displaying debug trace (plugin "war3ft.amxx", version "RC15 2018")
L 02/01/2022 - 20:17:58: [AMXX] Run time error 4: index out of bounds 
L 02/01/2022 - 20:17:58: [AMXX]    [0] war3ft.sma::client_PostThink (line 574)
L 02/01/2022 - 20:17:58: [AMXX] Displaying debug trace (plugin "war3ft.amxx", version "RC15 2018")
L 02/01/2022 - 20:17:58: [AMXX] Run time error 4: index out of bounds 
L 02/01/2022 - 20:17:58: [AMXX]    [0] war3ft.sma::client_PostThink (line 574)
L 02/01/2022 - 20:17:58: [AMXX] Displaying debug trace (plugin "war3ft.amxx", version "RC15 2018")
L 02/01/2022 - 20:17:58: [AMXX] Run time error 4: index out of bounds 
L 02/01/2022 - 20:17:58: [AMXX]    [0] war3ft.sma::client_PostThink (line 574)
With no debug enabled:
Code:
L 02/01/2022 - 20:27:46: [AMXX] Run time error 4 (plugin "war3ft.amxx") - debug not enabled!
L 02/01/2022 - 20:27:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/01/2022 - 20:27:46: [AMXX] Run time error 4 (plugin "war3ft.amxx") - debug not enabled!
L 02/01/2022 - 20:27:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/01/2022 - 20:27:46: [AMXX] Run time error 4 (plugin "war3ft.amxx") - debug not enabled!
And my script at that public function is this one:

Code:
public client_PostThink(id)
{


	if (!is_user_alive(id))
		return
		
	static iSkillLevel;
	iSkillLevel = SM_GetSkillLevel( id, SKILL_CYCLONE ); 
	
	if (!iSkillLevel)
		return
		
	if(g_icon_delay[id] + WALL_ICON_DELAY > get_gametime())
		return
		
	g_icon_delay[id] = get_gametime()
	
	
	for( new iPlayer = 1; iPlayer <= g_iMaxPlayers; iPlayer++ )
			{
				if( get_user_team(id) != get_user_team(iPlayer) && is_user_alive( iPlayer ) && get_user_health(iPlayer) <= p_cyclone[iSkillLevel-1] && is_user_connected(id) && is_user_connected(iPlayer) )
				{
					create_icon_origin(id, iPlayer, g_supplybox_icon_id)		
				}
			}
			

}
And those error repeating for unlimited number of times.
What I did wrong?
Thank you!

Last edited by Zore93; 02-01-2022 at 13:29.
Zore93 is offline
 



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 11:31.


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