Raised This Month: $ Target: $400
 0% 

Float variable/Cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 02-01-2009 , 04:07   Float variable/Cvar
Reply With Quote #1

i have a confusion with this type of var/cvar

1. if we create a pcvar float eg

Code:
new Float:g_Health
g_health = register_cvar("amx_health", "20")
Code:
new g_Health2
g_health2 = register_cvar("amx_health2", "20.0")
what's the default value in g_Health and g_Health2 ?


2. which of these is correct to store health value in float?

new Float:g_clienthealth = float(get_user_health(id)); or

new Float:g_clienthealth = get_user_health(id); or

new g_clienthealth = float(get_user_health(id))


3. are all values returned from pev, in float? eg pev_health.

Last edited by Mlk27; 02-01-2009 at 04:11.
Mlk27 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 01:40.


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