15.06.2009, 10:39
Quote:
|
Originally Posted by Blacklite
You can't just forward a function that doesn't exist.
Please learn how to code at least a little bit, before asking silly questions on here. Also, PlayerToPoint doesn't need to be a public function. |
Scroll down and you see the PlayerToPoint
Its right here look infront of your eyes,
If you was to scrolldown on the code provided on the first post,
You would realise that

pawn Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}

