[Ajuda] Pickups error
#4

SetPlayerInterior(playerid, 0);

Undefined Symbol PlayerToPoint

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 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
Pickups error - by Waldrey - 08.10.2012, 22:47
Re: Pickups error - by Diogo123 - 08.10.2012, 22:50
Re: Pickups error - by Waldrey - 08.10.2012, 23:11
Re: Pickups error - by FenixBorn - 08.10.2012, 23:14
Re: Pickups error - by mau.tito - 08.10.2012, 23:16
Re: Pickups error - by Diogo123 - 08.10.2012, 23:33
Re: Pickups error - by zSuYaNw - 08.10.2012, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)