[ajuda] Erro com "PlayerToPoint"
#2

Tem isso?
pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
-
pawn Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
    {
        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 true;
        }
    }
    return 0;
}
Reply


Messages In This Thread
[ajuda] Erro com "PlayerToPoint" - by KinX - 10.03.2012, 17:10
Re: [ajuda] Erro com "PlayerToPoint" - by DouglasRodrigues - 10.03.2012, 17:11
Re: [ajuda] Erro com "PlayerToPoint" - by KinX - 10.03.2012, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)