28.06.2009, 09:05
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.