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!