Raised This Month: $ Target: $400
 0% 

float mismatch, wut


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 09-25-2012 , 09:56   float mismatch, wut
Reply With Quote #1

PHP Code:
/* not important, just so you see how the enum is created */
enum Weapons
{
    
WEAPON_NONE 0,
    
WEAPON_OPENER,
    
WEAPON_AXE,
    
WEAPON_BOWIEKNIFE,
    
WEAPON_SAW
}

new const 
FloatcstDamageMultiplierWeapons ] =
{
    
1.0,
    
1.5,
    
2.0,
    
1.7,
    
2.5
}

/* not important, just so you see how the variable is initialized */
new Weaponsg_WeaponMAX_PLAYERS ] = WEAPON_NONE

/* in Ham_TakeDamage */
SetHamParamFloat4cstDamageMultiplierg_WeaponiAttacker ] ] ) 
Throws 5 tag mismatches, each one coming from the constant. What's wrong?

Last edited by Backstabnoob; 09-25-2012 at 09:57.
Backstabnoob is offline
 



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 08:18.


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