28.06.2009, 08:26
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if (PlayerToPoint(0.5, playerid, 1778.5148,-1575.8615,17.4416))
{
new newhealth = +50; // LINE 16
SetPlayerHealth(playerid, newhealth);
}
}
return 1;
}
pawn Код:
C:\Documents and Settings\Moustafa & Ahmed\Desktop\Desktop\server\filterscripts\prisonhealth.pwn(16) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Moustafa & Ahmed\Desktop\Desktop\server\filterscripts\prisonhealth.pwn(16) : warning 215: expression has no effect