Bug with GangZone
#1

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
Reply
#2

You got the wrong set of coordinates for zone.

https://sampwiki.blast.hk/wiki/GangZoneCreate
Reply
#3

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 );
Reply
#4

Quote:
Originally Posted by Bolex_
Посмотреть сообщение
You got the wrong set of coordinates for zone.

https://sampwiki.blast.hk/wiki/GangZoneCreate
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).
Reply
#5

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

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)