16.05.2013, 21:04
health > 100 that will never be true you want something like
if(health >= 95.0)
else if(health < 95.0)
you can also remove the two return 1; lines they only serve to inflate your code.
if(health >= 95.0)
else if(health < 95.0)
you can also remove the two return 1; lines they only serve to inflate your code.