Raised This Month: $ Target: $400
 0% 

[TF2] return function; (new syntax)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 04-20-2016 , 07:44   Re: [TF2] return function; (new syntax)
Reply With Quote #6

Quote:
Originally Posted by Phil25 View Post
For this to work you should change "void" to "int". But what you're trying to achieve could be done with reading the max health netprop of the player entity. I advise you to do that as max health could change depending on the loadout.
Totaly agree with Phil, if you add void to your function it makes it return nothing, so it's useless, you are actually trying to return a integrer so replace void with the right thing.
__________________
Benoist3012 is offline
 



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 21:11.


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