Code Alright ? - 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: Code Alright ? (
/showthread.php?tid=665367)
Code Alright ? -
playstores - 01.04.2019
stock Float:GetDistanceBetweenPoints(Float: x1f,Float:y1f,Float: z1f,Float: x2f,Float:y2f,Float:z2f)
{
return floatadd(floatadd(floatsqroot(floatpower(floatsub( x1f,x2f),2)),floatsqroot(floatpower(floatsub(y1f,y 2f),2))),floatsqroot(floatpower(floatsub(z1f,z2f), 2)));
}
Re: Code Alright ? -
fiki574 - 01.04.2019
Bruv, it's so good it cured my eye cancer.
Thanks.
Re: Code Alright ? -
MicroKyrr - 01.04.2019
Use CODE tags, tnx.
Quote:
Originally Posted by fiki574
Bruv, it's so good it cured my eye cancer.
Thanks.
|
Re: Code Alright ? -
playstores - 01.04.2019
Код:
stock Float:GetDistanceBetweenPoints(Float: x1f,Float:y1f,Float: z1f,Float: x2f,Float:y2f,Float:z2f)
{
return floatadd(floatadd(floatsqroot(floatpower(floatsub( x1f,x2f),2)),floatsqroot(floatpower(floatsub(y1f,y 2f),2))),floatsqroot(floatpower(floatsub(z1f,z2f), 2)));
}