Raised This Month: $ Target: $400
 0% 

Float in SetHamParamFloat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 04-10-2011 , 09:47   Float in SetHamParamFloat
Reply With Quote #1

What's wrong (tag mismatch)?

PHP Code:
public Ham_HookDamage(thisinflictorattackerFloat:damagedamagebits)
    if(
g_PlayerChar[attacker] == Robocop)
        
SetHamParamFloat(damagedamage get_pcvar_float(c_RobocopDmg)) 
Backstabnoob is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-10-2011 , 09:55   Re: Float in SetHamParamFloat
Reply With Quote #2

SetHamParamFloat(damage, damage * get_pcvar_float(c_RobocopDmg))
->
SetHamParamFloat(4, damage * get_pcvar_float(c_RobocopDmg))

Next time, please check how works the native, just a matter to see hamdanswich.inc and seeing the syntax.
__________________
Arkshine is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 04-10-2011 , 10:05   Re: Float in SetHamParamFloat
Reply With Quote #3

Oh, yea I forgot. Sorry and thanks ;)
Backstabnoob 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 20:08.


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