what's wrong with this code
#2

Your range of 0.40 is so low it will never activate also your array is wrong you need to keep track of damage of all players not dump it all into one variable you also need to keep track of time for example.

pawn Код:
enum DMGINFO
{
    DMGPlayer[MAX_PLAYERS],
    DMGTime[MAX_PLAYERS],
}

DMG[MAX_PLAYERS][DMGINFO]
So now what you do is check the time before adding damage if the time is greater than say 10 seconds it would reset how much damage you've done and set the damage amount to the damage you just did. Anyways you got a lot more problems than just a bad range the design is flawed.
Reply


Messages In This Thread
what's wrong with this code - by Strier - 24.08.2013, 00:07
Re: what's wrong with this code - by Pottus - 24.08.2013, 00:11
Re: what's wrong with this code - by Strier - 24.08.2013, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)