01.10.2010, 12:22
why i have error whil i typing "IsPlayerInRangeOfPoint"
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( (newkeys & KEY_FIRE) )
{
if(IsPlayerInRangeOfPoint(p,5,pos[0],pos[1],pos[2]))
{
SetPlayerHealth(playerid,-1);
}
}
return 1;
}
errors:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( (newkeys & KEY_FIRE) )
{
if(IsPlayerInRangeOfPoint(p,5,pos[0],pos[1],pos[2]))
{
SetPlayerHealth(playerid,-1);
}
}
return 1;
}
errors:
Quote:
pwn(533) : error 017: undefined symbol "IsPlayerInRangeOfPoint" |