Someone help me to solve this problem
Code:
L 11/01/2011 - 19:22:05: [AMXX] Run time error 4: index out of bounds
L 11/01/2011 - 19:22:05: [AMXX] [0] bio_zclass_banshee.sma::Forward_AddToFullPack_Post (line 651)
L 11/01/2011 - 19:22:05: [AMXX] Displaying debug trace (plugin "bio_zclass_banshee.amx
Here is code
PHP Code:
new g_iConfusing[33], g_iEntFake[33]
new g_confusing[33]
public Forward_AddToFullPack_Post(es_handled, inte, ent, host, hostflags, player, pSet)
{
// neu host ko con song thi bo qua
if (!is_user_alive(host))
return FMRES_IGNORED
if(!g_confusing[host] || !g_iConfusing[host])
return FMRES_IGNORED
// neu host ko bi dinh bomb hc thang attacker da chet
static iAttacker
iAttacker = g_iConfusing[host]
if (!iAttacker || iAttacker == host || !is_user_alive(iAttacker))
return FMRES_IGNORED
// neu ent chinh la thang nem bomb
if ((1 < ent < 32) && is_user_zombie(ent))
{
// an? thang do'
set_es(es_handled, ES_RenderMode, kRenderTransAdd)
set_es(es_handled, ES_RenderAmt, 0.0)
// tao ent fake cho attacker neu chua co
new iEntFake = find_ent_by_owner(-1, CLASSNAME_FAKE_PLAYER, ent)
if(!iEntFake || !pev_valid(ent))
{
iEntFake = create_fake_player(ent)
}
g_iEntFake[ent] = iEntFake
}
// neu ent la fake player cua attack
if (ent == g_iEntFake[ent]) // HERE IS 651 LINE
{
// show hang' cho thang victim xem
set_es(es_handled, ES_RenderMode, kRenderNormal)
set_es(es_handled, ES_RenderAmt, 255.0)
// set model cua host cho ent fake
set_es(es_handled, ES_ModelIndex, pev(host, pev_modelindex))
}
return FMRES_IGNORED
}
- I still check = "is_valid_ent" but still got error