Need help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help (
/showthread.php?tid=328069)
Need help -
Zaec - 23.03.2012
Hello,i have problem:
Код:
Float:GetDistanceToPointUX(playerid,Float:x1,Float:y1,Float:z1) //By Gabriel "Larcius" Cordes
{
if (IsPlayerConnected(playerid))
{
new Float:x2,Float:y2,Float:z2;
GetPlayerPos(playerid,x2,y2,z2);
return GetDistanceBetweenPoints(x1,y1,z1,x2,y2,z2);
}
return 1;
}
Код:
C:\Desktop\Free-Roam\gamemodes\fr.pwn(79) : warning 213: tag mismatch
I know what it shoul be:
Код:
Float:GetDistanceToPointUX(playerid,Float:x1,Float:y1,Float:z1) //By Gabriel "Larcius" Cordes
{
if (IsPlayerConnected(playerid))
{
new Float:x2,Float:y2,Float:z2;
GetPlayerPos(playerid,x2,y2,z2);
return GetDistanceBetweenPoints(x1,y1,z1,x2,y2,z2);
}
return INF_FLOAT;
}
But then i get error:
Код:
C:\Desktop\Free-Roam\gamemodes\fr.pwn(79) : error 017: undefined symbol "INF_FLOAT"
Please help,if someones know whats wrong
Re: Need help -
Vince - 23.03.2012
https://sampwiki.blast.hk/wiki/GetPlayerDistanceFromPoint
Re: Need help -
Zaec - 23.03.2012
Thanks for helping,but no need another code for me,i need this one.Maybe someones know how to fix it?
Re: Need help -
Zaec - 23.03.2012
bump
Re: Need help -
niels44 - 23.03.2012
you have defined INF_FLOAT?