Raised This Month: $ Target: $400
 0% 

[FAKEMETA] Invalid entity set_pev


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 05-05-2020 , 18:33   [FAKEMETA] Invalid entity set_pev
Reply With Quote #1

I create a C4 game that can be seen and hovered in the air at UNITS distance, but while being shot or touched it disappears
Code:
L 05/06/2020 - 00:03:43: [FAKEMETA] Invalid entity
L 05/06/2020 - 00:03:43: [AMXX] Displaying debug trace (plugin "take_away_bomb.amxx", version "1.0")
L 05/06/2020 - 00:03:43: [AMXX] Run time error 10: native error (native "set_pev")
L 05/06/2020 - 00:03:43: [AMXX]    [0] take_away_bomb.sma::HandleUpdateOwnerTask (line 294)
Question * If anyone can add me as I shoot it, it will fly in the FLOAT air?
Code:
public pfnSetModel_Post(this, const szModel[])
{
	if (!g_bTakeAwayBomb)
		return;

	if (!FClassnameIs(this, "weaponbox"))
		return;

	new pItem = GetWeaponBoxItem(this);

	if (pItem == -1)
		return;

	if (cs_get_weapon_id(pItem) != CSW_C4)
		return;

	new iColor[3], pOwner;

	pOwner = pev(this, pev_owner);

	if (pOwner != g_pGuard && pOwner != g_pPrisoner)
		return;

	engfunc(EngFunc_SetSize, this, Float:{ -5.22, -2.94, 0.0 }, Float:{ 5.22, 2.94, 6.85 });
	
	set_pev(this, pev_takedamage, DAMAGE_YES);
	set_pev(this, pev_solid, SOLID_BBOX);
	set_pev(this, pev_iuser4, pOwner);

	switch (get_user_team(pOwner))
	{
		case 1:
			iColor = { 200, 0, 0 };

		case 2:
			iColor = { 0, 0, 200 };
	}

	set_rendering(this, kRenderFxGlowShell, iColor[0], iColor[1], iColor[2], kRenderNormal, 25);

	set_task(0.1, "HandleUpdateOwnerTask", this);
}

public HandleUpdateOwnerTask(this) // error here
{
	set_pev(this, pev_owner, 0);
}

Last edited by Fuck For Fun; 05-05-2020 at 18:34.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



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 17:13.


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