SetHamParamFloat,if not float char?
If in SetHamParamFloat I will do this:
SetHamParamFloat(4, damage * 2) If "2" is not float, then damage won't multiple x2 ? |
Re: SetHamParamFloat,if not float char?
Yes it will, as soon as damage is a float
Float * integer = Float |
Re: SetHamParamFloat,if not float char?
In same cases it wont work, but I guess you can do this in SetHamParamFloat().
|
Re: SetHamParamFloat,if not float char?
OK thx for the info.
And I have this problem: PHP Code:
PHP Code:
I need to float this in HamTakedamage: BulletLevel[i_Attacker], how to do this?. |
Re: SetHamParamFloat,if not float char?
float()
|
Re: SetHamParamFloat,if not float char?
Quote:
Yes it is thx. :D And please check this: I've good checked? If you are ct ,damage increased and if he has usp,glock etc. PHP Code:
|
Re: SetHamParamFloat,if not float char?
PHP Code:
Here is the better way of doing it, so that you don't call get_user_team() twice for the attacker and get_user_weapon() 6 times for the attacker: Code:
|
Re: SetHamParamFloat,if not float char?
Yeah thx ;;;;;;)))))
|
| All times are GMT -4. The time now is 16:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.