HELP, GANG ZONES! [ REP + ]
#1

Hey guys, i experienced a bug, while trying to create a gang zone.

I used one of the gang zone editors, when you just typed a command and than walked around the city, while looking at the map to create a perfect gang zone. When the gang zone looked like you wanted, you simply saved it.

But as soon, as I created the first, second or third gang-zone, this bug appeared:

https://www.youtube.com/watch?v=Dm8pYxgI61s&t=0m39s

Video is timed, so as soon as you click on it, look at the minimap.

I read something about a fact, that i need to go from left to right, but I didnt really understood how. I also tried to go from one corner to other, but still the same glitch.

Could some good soul explain, why and how to fix it? I would not hesitate to give him REP+.
Reply
#2

You using a filterscript? can you show it?
Reply
#3

I have tried several ones, for example this:

https://sampforum.blast.hk/showthread.php?tid=311553

or currently used someones, however not sure from where i got it, short memory guy.

Either way, both are glitching the same.
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=591458

This might fix it. (if not willing to use the whole library, you can extract the "GangZoneCreate" fix from it)
I am pretty sure the glitch appears because of the coordinates are not in proper order while creating gangzones.
The filterscript probably takes the coordinates from position and without checking if "minx" is not greater than "maxx" and same for "y".
Reply
#5

This happens when minx/miny value is greater than maxx/maxy value. I think it could be easily fixed

Код:
stock GangZoneCreateEx(Float:minx, Float:miny, Float:maxx, Float:maxy)
{
	if(minx > maxx)
	{
		new Float:StoreMinValue = minx;
		minx = maxx;
		maxx = StoreMinValue;
	}
	if(miny > maxy)
	{
		new Float:StoreMinValue = miny;
		miny = maxy;
		maxy = StoreMinValue;
	}
	return GangZoneCreate(minx, miny, maxx, maxy);
}
Didn't test, but should work. You just need to ensure that minx/miny value is lower than maxx/maxy value as it should be.
Reply
#6

Repped you all, thanks guys a lot.
Reply
#7

Well, there is a problem.

When i try to log into my account, it keeps telling, that my password is incorrect.

As soon as i remove fixer.inc, everything works fine.
Reply
#8

Quote:
Originally Posted by _GHT_MarK445
Посмотреть сообщение
Well, there is a problem.

When i try to log into my account, it keeps telling, that my password is incorrect.

As soon as i remove fixer.inc, everything works fine.
Either you make a new topic about this in "Scripting help" or instead go here to address the issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)