SA-MP Forums Archive
GetArea(&Float:minx,&Float:miny,&Float:maxx,&Float :maxy) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetArea(&Float:minx,&Float:miny,&Float:maxx,&Float :maxy) (/showthread.php?tid=141596)



GetArea(&Float:minx,&Float:miny,&Float:maxx,&Float :maxy) - pagie1111 - 14.04.2010

I am wondering if there is a function that gets the area as like above in the title.

The area needs to be in SAMP units Squared (m2)


Re: GetArea(Float:minx,Float:miny,Float:maxx,Float:max y) - Simon - 14.04.2010

pawn Code:
stock Float:GetArea(Float:minx, Float:miny, Float:maxx, Float:maxy)
{
  return floatabs((maxx-minx)*(maxy-miny));
}
If there wasn't, there is now.