Raised This Month: $51 Target: $400
 12% 

Solved L4D1 How to get common zombie remaining health?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 12-05-2020 , 16:22   L4D1 How to get common zombie remaining health?
Reply With Quote #1

Hello, I tried:

PHP Code:
int health GetEntProp(entityProp_Send"m_iHealth"); 
But I get:
Code:
L 12/05/2020 - 18:19:32: [SM] Exception reported: Property "m_iHealth" not found (entity 477/infected)
L 12/05/2020 - 18:19:32: [SM] Blaming: l4d_combo_counter.smx
L 12/05/2020 - 18:19:32: [SM] Call stack trace:
L 12/05/2020 - 18:19:32: [SM]   [0] GetEntProp
L 12/05/2020 - 18:19:32: [SM]   [1] Line 53, C:\Steam\steamapps\common\Left 4 Dead Dedicated Server\left4dead\addons\sourcemod\scripting\l4d_combo_counter.sp::OnTakeDamage
Thanks.

Last edited by axelnieves2012; 12-06-2020 at 12:22.
axelnieves2012 is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 12-05-2020 , 17:56   Re: L4D1 How to get common zombie remaining health?
Reply With Quote #2

Change Prop_Send to Prop_Data.
cravenge is offline
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 12-06-2020 , 12:23   Re: L4D1 How to get common zombie remaining health?
Reply With Quote #3

Quote:
Originally Posted by cravenge View Post
Change Prop_Send to Prop_Data.
I cant believe i've forgot about this. So long time not programming. Thanks
axelnieves2012 is offline
Reply



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 09:12.


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