[Ajuda] Pickups
#1

Entгo estou criando interiores no lugar da cidade mais esta com esses erros.


Erros
Quote:

C:\Users\WaldreySouza\Desktop\WALDREYSOUZA\SAMP\ga memodes\lbrpg.pwn(142) : error 017: undefined symbol "PlayerToPoint"
C:\Users\WaldreySouza\Desktop\WALDREYSOUZA\SAMP\ga memodes\lbrpg.pwn(149) : error 017: undefined symbol "PlayerToPoint"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Linhas do erros abaixo.
Код:
 "if(PlayerToPoint(1.0, playerid,1553.2644,-1675.6138,16.1953))" LINHA 142
"if(PlayerToPoint(1.0, playerid,246.783996,63.900199,1003.640625))" LINHA 149
Reply
#2

Cole isso no final de seu gm
pawn Код:
stock 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 true;
    }
    return false;
}
Reply
#3

Olha ai para ver se tem isso. Eu acho que й isso.

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

Edit......
Nгo vi o do cara /\
Reply
#5

Pegou Shooc obrigado.
Reply
#6

Nгo da definido..

pawn Код:
stock PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z)
{
    new Floatldposx, Floatldposy, Floatldposz;
    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;
}
@edit.

Atrasado .. u-u. malz.
Reply
#7

Use IsPlayerInRangeOfPoint no lugar de PlayerToPoint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)