Raised This Month: $ Target: $400
 0% 

omg i don't undersand this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 06-10-2010 , 05:29   Re: omg i don't undersand this
Reply With Quote #1

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamagebits)
{  
    if (
get_user_weapon(attacker) == CSW_DEAGLE)
    {
        
SetHamParamFloat(4, ( damage *= get_pcvar_floattoggle_dmg ) ) )
        return 
HAM_IGNORED;
    }
    return 
HAM_IGNORED;

This works because damage*=get_pcvar_float means
PHP Code:
damage damage get_pcvar_floattoggle_dmg 
You are just setting the value for the "damage" variable, but you don't assign it
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
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 05:24.


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