SA-MP Forums Archive
X:min X:max Ymin Ymax - 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: X:min X:max Ymin Ymax (/showthread.php?tid=172197)



X:min X:max Ymin Ymax - creepymoto - 29.08.2010

I saw a picture how the min and max work but i didnt find it now


anyone could say how it works ? Im really confused -.- because i tried making worldboundries over something and it just shrinked the boundries.


Re: X:min X:max Ymin Ymax - Nonameman - 29.08.2010

If you want to use a function on an area, as you said, you need a min/max X and a min/max Y.
It looks like:

__________MAX
|................|
|....the area.|
|................|
MIN________|

So you get a point's X and Y coords, and an other's X and Y, and the area will be between them.


Re: X:min X:max Ymin Ymax - creepymoto - 29.08.2010

so it would be something like this ?


MAXY__________MAX X
|.........................|
|....the area..........|
|.........................|
MINX________MINY|


Re: X:min X:max Ymin Ymax - ziomal432 - 29.08.2010

No.

__________MAX X, Y
|................|
|....the area.|
|................|
MIN________|
X,Y


Re: X:min X:max Ymin Ymax - creepymoto - 29.08.2010

Ohhh okey , now i get it atlast.

:P Thanks