Bug with GangZone - 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: Bug with GangZone (
/showthread.php?tid=659734)
Bug with GangZone -
GospodinX - 14.10.2018
Hi guys
I have an bug with GangZones.It shows on radar that i have gang zone in place where i don't have..
On radar:
Map:
I have only one zone in my mode.(You have on picture position)
What can be problem?Thanks
Re: Bug with GangZone -
Bolex_ - 14.10.2018
You got the wrong set of coordinates for zone.
https://sampwiki.blast.hk/wiki/GangZoneCreate
Re: Bug with GangZone -
IstuntmanI - 14.10.2018
https://sampwiki.blast.hk/wiki/GangZoneCreate: "Putting the parameters in the wrong order results in glitchy behavior."
So make sure that minx < maxx and miny < maxy.
Also, as far as I know, it is recommended to use round values for the coordinates, so if you have a gangzone like
Код:
GangZoneCreate( 50.353, 50.137, 999.883, 1000.294 );
you should change it to
Код:
GangZoneCreate( 50.0, 50.0, 1000.0, 1000.0 );
Re: Bug with GangZone -
GospodinX - 14.10.2018
Quote:
Originally Posted by Bolex_
|
Why you think it?
Coordinates:
minx: 2409.18
miny: -1601.37
maxx: 2594
maxy: -1727.37
I'm make gang zone just like i wanted...It look good(In Grove Street).
Re: Bug with GangZone -
IstuntmanI - 14.10.2018
Quote:
Originally Posted by GospodinX
Why you think it?
Coordinates:
minx: 2409.18
miny: -1601.37
maxx: 2594
maxy: -1727.37
I'm make gang zone just like i wanted...It look good(In Grove Street).
|
The problem is on the y values. -1601.37 is actually bigger than -1727.37. So, based on that (and what I said in my previous post) it should look like this:
Quote:
minx: 2409.0
miny: -1727.0
maxx: 2594.0
maxy: -1601.0
|