Quote:
Originally Posted by Liverwiz
new Float:percent = (cs_get_weapon_ammo(id) / clipSize[weapon]) * 100 //This will get % of clip left
if(percent == 50 || percent == 10)
|
You are performing integer division which will give you an integer (0 in this case). Also, you can never use the comparison operator (==) with floating point numbers.
__________________