求助:急请高手解决超级M4+M203中的BUG
看国内好几个F有这个插件,不知道你们是怎么解决的。谢谢大家帮忙了!!Invalid entity
Displaying debug trace (plugin "zp_extra_m4_m203.amxx")
Run time error 10: native error (native "set_pev")
zp_extra_m4_m203.sma::manage_effect_env (line 1497)
stock manage_effect_env(iEffect, Float:fOrigin, iUserEnt)
{
if ( !iUserEnt )
return 0
new param = iSwEffectID
if ( param <= MAXPLAYERS )
{
create_effect_entity()
manage_effect_env(iEffect, fOrigin, iUserEnt)
}
set_pev(param, pev_origin, fOrigin) =》line 1497
dllfunc(DLLFunc_Use, param, iUserEnt)
set_pev(param, pev_origin, {8192.0,8192.0,8192.0})
return 1
}
zp_extra_m4_m203.sma::grenade_explode (line 1049)
public grenade_explode(ptr, type)
{
new Float:fPoint
engfunc(EngFunc_RemoveEntity, pev(ptr, pev_SwNade_HurtEnt_i))
set_pev(ptr, pev_SwNade_HurtEnt_i, 0)
if ( type == TYPE_GASNADE )
{
pev(ptr, pev_angles, fPoint)
fPoint += 90.0
set_pev(ptr, pev_angles, fPoint)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY, _)
write_byte(TE_KILLBEAM)
write_short(ptr)//entity
message_end()
if ( task_exists(ptr) )
remove_task(ptr)
set_task(1.5, "task_gas_explode", ptr)
return
}
new attacker = pev(ptr, pev_owner)
new iAttackerTeam = get_user_team(attacker)
new victim = -1
new Float:fOrigin,Float:fDistance,Float:fDamage,Float:fTakeDamage
new AttackerName,classname
new iParam,iTeamKill
pev(ptr, pev_origin, fPoint)
fPoint += 1.0
manage_effect_env(EFFECT_EXPLO, fPoint, ptr) =》line 1049
zp_extra_m4_m203.sma::forward_touch (line 941)
public forward_touch(ptr, ptd)
{
if ( !pev_valid(ptr) )
return FMRES_IGNORED
static classname
pev(ptr, pev_classname, classname, sizeof classname - 1)
if ( equal(classname, sSwClassname_Prefix, 3) )
{
new iParam,Float:fVector
switch ( classname )
{
case 'G':
{
switch ( classname )
{
case 'H'://hegrenade
grenade_explode(ptr, TYPE_HENADE)=》line 941 难道国内没有能够修正的吗?不太相信也。
谁修改完好的就共享一下呗?
页:
[1]