Raised This Month: $32 Target: $400
 8% 

SetHamParamFloat ~ Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 07-28-2011 , 08:21   SetHamParamFloat ~ Problem
Reply With Quote #1

Error:
Code:
L 07/28/2011 - 12:08:36: [HAMSANDWICH] Wrong data type (data is of type vector)
L 07/28/2011 - 12:08:36: [AMXX] Displaying debug trace (plugin "LR-Boxing.amxx")
L 07/28/2011 - 12:08:36: [AMXX] Run time error 10: native error (native "SetHamParamFloat")
L 07/28/2011 - 12:08:36: [AMXX]    [0] LR-Boxing.sma::Forward_TraceAttack (line 182)
Code:
PHP Code:
public Forward_TraceAttack(victimattackerFloat:damageFloat:dir[3], trdamage_type) {
   
// Code
    
        
SetHamParamFloat(4damage get_pcvar_float(cDamage))
    }

Problem:
Code:
First I had Ham_TakeDamage, but I had to change..
Now with TraceAttack it gives error in SetHamParamFloat, 
I never had the problem with Ham_TakeDamage
Can someone help whats wrong or so?

Thanks
__________________
Retired.
Xalus is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-28-2011 , 08:32   Re: SetHamParamFloat ~ Problem
Reply With Quote #2

Code:
SetHamParamFloat(4, damage * get_pcvar_float(cDamage))
->
Code:
SetHamParamFloat(3, damage * get_pcvar_float(cDamage))
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 00:19.


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