SA-MP Forums Archive
[Ajuda] GetDistanceFromMeToPoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] GetDistanceFromMeToPoint (/showthread.php?tid=360959)



GetDistanceFromMeToPoint - Hunter_Xtreme - 19.07.2012

Eae galera, й o seguinte, fui compilar meu gm e deu esses erros na parte de GetDistanceFromMeToPoint.

pawn Код:
(40118) : error 017: undefined symbol "GetDistanceFromMeToPoint"
(40122) : error 017: undefined symbol "GetDistanceFromMeToPoint"
OBS: Ja tem a include a_npc

Alguem Poderia me ajudar


Re: GetDistanceFromMeToPoint - ViniBorn - 19.07.2012

Vocк estб usando o compilador certo?


Re: GetDistanceFromMeToPoint - RafaScripter - 19.07.2012

Bota Isso no final do Gamemode
pawn Код:
Stock GetDistanceFromMeToPoint(Float:X,Float:Y,Float:Z,Float:tX,Float:tY,Float:tZ)
{
    return Float:floatsqroot((tX-X)*(tX-X)+(tY-Y)*(tY-Y)+(tZ-Z)*(tZ-Z));
}



Re: GetDistanceFromMeToPoint - [JD]BlackFire - 19.07.2012

pawn Код:
GetPlayerDistanceFromPoint(playerid, x,y,z);



Re: GetDistanceFromMeToPoint - Hunter_Xtreme - 19.07.2012

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Vocк estб usando o compilador certo?
Sim ^^

Quote:
Originally Posted by RafaScripter
Посмотреть сообщение
Bota Isso no final do Gamemode
pawn Код:
Stock GetDistanceFromMeToPoint(Float:X,Float:Y,Float:Z,Float:tX,Float:tY,Float:tZ)
{
    return Float:floatsqroot((tX-X)*(tX-X)+(tY-Y)*(tY-Y)+(tZ-Z)*(tZ-Z));
}
Amigo, coloquei isso e nao deu certo, msm assim vlw ^^

Quote:
Originally Posted by [JD]BlackFire
Посмотреть сообщение
pawn Код:
GetPlayerDistanceFromPoint(playerid, x,y,z);
Deu Certo ^^