Help Me - 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: Help Me (
/showthread.php?tid=540019)
Help Me -
VishvaJeet - 02.10.2014
Can't Understand Value
Код:
stock GetDistance(Float:x1,Float:y1,Float:z1, Float:x2,Float:y2,Float:z2)
{
return floatround(floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2)));
}
This function will return value in Meters or foot ?
Re: Help Me -
Sawalha - 02.10.2014
Meters, then why GetPlayerDistanceFromPoint created? it's for feet , so this one you are having for meters.
Re: Help Me -
mamorunl - 02.10.2014
There is no 'meters' or 'feet' in samp. These are just coordinates on which people make assumptions that they are meters
Re: Help Me -
MysteriousGaming - 02.10.2014
Not meters. In samp there is co ordinates to present tye position.