[ajuda] Erro com "PlayerToPoint"
#1

Tava editando um FS aqui e na hora de compilar ele deus uns erros aki

Quote:

C:\Users\User4\Desktop\Basket.pwn(123) : error 004: function "PlayerToPoint" is not implemented
C:\Users\User4\Desktop\Basket.pwn(132) : warning 217: loose indentation
C:\Users\User4\Desktop\Basket.pwn(134) : error 004: function "PlayerToPoint" is not implemented
C:\Users\User4\Desktop\Basket.pwn(106) : warning 204: symbol is assigned a value that is never used: "string"

Linhas

Quote:

(134) if(PlayerToPoint(2.5,playerid,ox,oy,oz))
(123)if(PlayerToPoint(2.5,playerid,ox,oy,oz))

Alguem poderia ajudar a arrumar os erros?

Qem ajudar ganha REP
Reply
#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
#3

Boaa, vlw ae !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)