Raised This Month: $ Target: $400
 0% 

error 001: expected token: ")", but found ";"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 07-21-2019 , 09:53   Re: error 001: expected token: ")", but found ";"
Reply With Quote #2

Quote:
You only need to use is_valid_player() and get_user_weapon() before g_HasM4
Your line 441 is incorrect
PHP Code:
if(is_valid_player(attacker) && get_user_weapon(attacker) == CSW_M4A1 && g_HasM4[attacker] ) 
Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
{
    if(is_valid_player(attacker) && get_user_weapon(attacker) == CSW_M4A1 && g_HasM4[attacker] ) 
    {
        SetHamParamFloat(4, damage * 999.0); 
    }
}

Last edited by Fuck For Fun; 07-21-2019 at 11:07.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



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 17:27.


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