|
看国内好几个F有这个插件,不知道你们是怎么解决的。谢谢大家帮忙了!!
[FAKEMETA] Invalid entity
[AMXX] Displaying debug trace (plugin "zp_extra_m4_m203.amxx")
[AMXX] Run time error 10: native error (native "set_pev")
[AMXX] [0] zp_extra_m4_m203.sma::manage_effect_env (line 1497)
stock manage_effect_env(iEffect, Float:fOrigin[3], iUserEnt)
{
if ( !iUserEnt )
return 0
new param = iSwEffectID[iEffect]
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
}
[AMXX] [1] zp_extra_m4_m203.sma::grenade_explode (line 1049)
public grenade_explode(ptr, type)
{
new Float:fPoint[3]
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[1] += 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[3],Float:fDistance,Float:fDamage,Float:fTakeDamage
new AttackerName[32],classname[32]
new iParam,iTeamKill
pev(ptr, pev_origin, fPoint)
fPoint[2] += 1.0
manage_effect_env(EFFECT_EXPLO, fPoint, ptr) =》line 1049
[AMXX] [2] zp_extra_m4_m203.sma::forward_touch (line 941)
public forward_touch(ptr, ptd)
{
if ( !pev_valid(ptr) )
return FMRES_IGNORED
static classname[32]
pev(ptr, pev_classname, classname, sizeof classname - 1)
if ( equal(classname, sSwClassname_Prefix, 3) )
{
new iParam,Float:fVector[3]
switch ( classname[3] )
{
case 'G':
{
switch ( classname[11] )
{
case 'H'://hegrenade
grenade_explode(ptr, TYPE_HENADE) =》line 941 |
|