SA-MP Forums Archive
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: GangZone (/showthread.php?tid=492451)



GangZone - DarkLored - 03.02.2014

Hello i made a gangzone color place so it will mark team areas after i did it when i am trying to login after i pick my class i crash because of the gang zones any idea whats the problem?

here is my code
pawn Код:
new gangzone;
pawn Код:
gangzone = GangZoneCreate(1338.6904,1862.5087,1636.6294,1143.7778);
pawn Код:
GangZoneShowForAll(gangzone,COLOR_PURPLE);



Re: GangZone - DarkLored - 03.02.2014

Guys any help ?


Re: GangZone - AlonzoTorres - 03.02.2014

Quote:
Originally Posted by DarkLored
Посмотреть сообщение
Guys any help ?
I just installed the script found as an example on the Wiki and when I was driving towards the red area it crashed. I will try to see what I can find out but it seems to be a bug in SA-MP.

EDIT: I guess it was only a temporary crash because when I logged in again it actually worked. Where did you place the code where you show your players the gangzones?


Re: GangZone - DarkLored - 03.02.2014

is there any way to use a include that uses a different method of it does streamer supports gang zones?

[EDIT]The both in gamemodeinit the last one onplayerspawn


Re: GangZone - DarkLored - 04.02.2014

Anyone else can help me i really need it for my gm that i am making


Re: GangZone - AlonzoTorres - 04.02.2014

Quote:
Originally Posted by DarkLored
Посмотреть сообщение
Anyone else can help me i really need it for my gm that i am making
Have you tried putting the variable at the top of your script instead? Also make sure that your coordinates are correct.


Re: GangZone - DarkLored - 04.02.2014

oops the variable is potted on the top and i followed wiki instructions about the gangzone stuff but i got as a result a crash


Re: GangZone - DarkLored - 04.02.2014

is there any way to fix this crash


Re: GangZone - DarkLored - 04.02.2014

Guys please i am getting always a crash after spawning in the area that i chose can someone help me i dont know why i am crashing


Re: GangZone - Hostskool - 04.02.2014

Quote:
Originally Posted by DarkLored
Посмотреть сообщение
Hello i made a gangzone color place so it will mark team areas after i did it when i am trying to login after i pick my class i crash because of the gang zones any idea whats the problem?

here is my code
pawn Код:
new gangzone;
pawn Код:
gangzone = GangZoneCreate(1338.6904,1862.5087,1636.6294,1143.7778);
pawn Код:
GangZoneShowForAll(gangzone,COLOR_PURPLE);
Do you know how to calculate the minx miny maxx maxy co-ordinates properly? Seems , like you haven't calculated them correctly.

For example: You have to save 4 co-ordinates and then, choose the minx (lowest x) out of it. Same goes for miny (lowest y). For maxx it should be highest x.