Limit of healing and timer???
#1

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if (PlayerToPoint(0.5, playerid, 1778.5148,-1575.8615,17.4416))
        {
            #define newhealth 25
            new Float:oldhealth;
            GetPlayerHealth(playerid,oldhealth);
            SetPlayerHealth(playerid,oldhealth + newhealth);
            }
            else
            {
            GetPlayerHealth(playerid, 100); // line 23
            SendClientMessage(playerid, 0xFF0000FF, " Your health is full");
        }
    }
    return 1;
}
SCROLL DOWN AND SEE THE SCRIPT OVERALL!!

Iam getting error on line (23) : error 035: argument type mismatch (argument 2)

I want that line as when the Player's health is 100 then it tells him that his health is full, and i need to set timer so after 5 seconds he can press F again so he can heal again until he reach 100 health, after that, he cannot use it again unless he loses health..

If you can help me, then please do..
Reply


Messages In This Thread
Limit of healing and timer??? - by Moustafa - 28.06.2009, 08:58
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:03
Re: Limit of healing and timer??? - by woot - 28.06.2009, 09:03
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:05
Re: Limit of healing and timer??? - by dice7 - 28.06.2009, 09:06
Re: Limit of healing and timer??? - by woot - 28.06.2009, 09:09
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:11
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:17
Re: Limit of healing and timer??? - by yom - 28.06.2009, 09:20
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)