Raised This Month: $32 Target: $400
 8% 

Problem with returning value


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kgbproject
Member
Join Date: Nov 2014
Location: Russia
Old 09-22-2018 , 11:26   Problem with returning value
Reply With Quote #1

Hello its about TF2.
Why GetEntProp(entity, Prop_Send, "m_hEnemy) returning me random values except of enemy index ?
returning me values like 38445154
Net dump string:
Member: m_hEnemy (offset 282 (type integer) (bits 21) (Unsigned)
__________________
Steam
Making SM plugins for TF2 for money. PM in Steam.
kgbproject is offline
kgbproject
Member
Join Date: Nov 2014
Location: Russia
Old 09-22-2018 , 11:42   Re: Problem with returning value
Reply With Quote #2

Move to sourcemod section
__________________
Steam
Making SM plugins for TF2 for money. PM in Steam.
kgbproject is offline
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 09-22-2018 , 14:49   Re: Problem with returning value
Reply With Quote #3

Did you try GetEntPropEnt ?
__________________
disawar1 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-22-2018 , 18:52   Re: Problem with returning value
Reply With Quote #4

Quote:
Originally Posted by disawar1 View Post
Did you try GetEntPropEnt ?
^ this

You need to use GetEntPropEnt on things that return an entity reference instead of just an entity. Usually that's anything that might return a player entity.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply


Thread Tools
Display Modes

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 05:52.


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