Limit of healing and timer???
#4

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if (PlayerToPoint(0.5, playerid, 1778.5148,-1575.8615,17.4416))
        {
            #define newhealth 50
            new Float:oldhealth;
            GetPlayerHealth(playerid,oldhealth);
            SetPlayerHealth(playerid,oldhealth + newhealth);
            new Float:pHealth;
            GetPlayerHealth(playerid, phealth);
            if(pHealth > 99.0) return SendClientMessage(playerid, 0xFF0000FF, " Your health is full");
        }
    }
    return 1;
}
Код:
C:\Documents and Settings\Moustafa & Ahmed\Desktop\Desktop\server\filterscripts\prisonhealth.pwn(21) : error 017: undefined symbol "phealth"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
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: 2 Guest(s)