PlayerToPoint prob
#1

I am making moveable gate so i got this error
Код:
D:\TDm 2.0\ilkul new wala\NVCNR.pwn(19925) : error 017: undefined symbol "PlayerToPoint"

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Try using, IsPlayerInRangeOfPoint?
Reply
#3

already tried but didnt worked
Reply
#4

Did a ****** search and found this,

pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);

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);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)