GangZone
#1

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

Guys any help ?
Reply
#3

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?
Reply
#4

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

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

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

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

is there any way to fix this crash
Reply
#9

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

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)