15.08.2016, 11:43
A string cannot be multiplied.
Код:
GetWeaponDamage(WeaponID) { switch(WeaponID) { case 0,1..8: return floatround(WEAPON_DMG_BRASS); case 22: return floatround(WEAPON_DMG_COLT); case 23: return floatround(WEAPON_DMG_SILENCED); case 24: return floatround(WEAPON_DMG_DEAGLE); case 25: return floatround(WEAPON_DMG_SHOTGUN); case 27: return floatround(WEAPON_DMG_COMBAT); case 28: return floatround(WEAPON_DMG_UZI); case 29: return floatround(WEAPON_DMG_MP5); case 30: return floatround(WEAPON_DMG_AK47); case 31: return floatround(WEAPON_DMG_M4); case 32: return floatround(WEAPON_DMG_TEC9); case 33: return floatround(WEAPON_DMG_RIFLE); case 34: return floatround(WEAPON_DMG_SNIPER); } return -1; }