Raised This Month: $ Target: $400
 0% 

Checks fail all the time?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-04-2010 , 19:54   Re: Checks fail all the time?
Reply With Quote #1

Quote:
Originally Posted by Jelle View Post
That I did not catch. I have always been using this method, also for radius of a blast or something like that. The sh native ask for the pcvars and reads the values:

Code:
/**
 * Sets hero's max Health and Armor. (Optional)
 * Health and Armor do not stack, values from heroes are compared and greatest is applied.
 *
 * @note		If you only want to set one of the values, set the other to 0 or underscore "_" to use the default set value of 0.
 *
 * @param heroID	The index of the hero.
 * @param pcvarHealth	The pcvar value for maximum Health CVAR for the hero, CVAR values below 100 are ignored.
 * @param pcvarArmor	The pcvar value for maximum Armor CVAR for the hero.
 * @noreturn
 */
native sh_set_hero_hpap(heroID, pcvarHealth = 0, pcvarArmor = 0);
Oh, umm, that description is confusing. It says pcvar value and not "cvar pointer" which makes kinda vague. The person that wrote that needs to reword it.
__________________

Last edited by fysiks; 05-04-2010 at 19:57.
fysiks 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 03:36.


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