Need help with /heal
#3

However, the /heal command checks the players life. If he had more than 99 HP, you cant heal him as a medic.

The command then triggers the timer "HealStep1" from which in turn triggers "HealStep2" from, as in a loop. But he heals continues indefinitely.

These are the lines that are not raised any:

pawn Код:
if (health > 99.0)
        {
            SendClientMessage(playerid,COLOR_LIGHTBLUE,"* You were fully healed");
            KillTimer(HealStep1(playerid));
            KillTimer(HealStep2(playerid));
            return 1;
        }
He don't check, whether the player has more life than 99, only if he has less than 100.(it's in a timer)
You know what i mean now?
Reply


Messages In This Thread
Need help with /heal (HelpStep and health > 99.0) didnt works - by nescha - 09.07.2011, 11:23
Re: Need help with /heal - by [MG]Dimi - 09.07.2011, 13:01
Re: Need help with /heal - by nescha - 09.07.2011, 13:47
Re: Need help with /heal - by =WoR=Varth - 09.07.2011, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)