GangZoneCreate error or something.... - 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: GangZoneCreate error or something.... (
/showthread.php?tid=605697)
GangZoneCreate error or something.... -
Alpha000 - 23.04.2016
i made 3 gang zones...2 are working correctly and 1 is not..
Код:
new gangzoneone;
new gangzonetwo;
new gangzonethree;
under public OnGameModeInit()
gangzones...
PHP код:
gangzoneone= GangZoneCreate(69.0464, -2975.5249, 3030.7229, -421.0719);
gangzonetwo= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016);
gangzonethree= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016);
OnPlayerUPdate
PHP код:
if(IsPlayerInGangZone(playerid, gangzonethree))
{
SendClientMessage(playerid, COLOR_RED, "WARNING: {FFFFFF}You have entered gangzone 3.");
other two has same code and it send client message that u are in gangzone 2 or 1 but it doesn't send message for 3rd.
I'm using InterActive GangZones:
https://sampforum.blast.hk/showthread.php?tid=556670
and simple a_zone includes.....
Any Help?
Re: GangZoneCreate error or something.... -
Alpha000 - 23.04.2016
any help?
Re: GangZoneCreate error or something.... -
povargek - 23.04.2016
Код:
gangzonetwo= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016);
gangzonethree= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016);
String's is equal! (after GangZoneCreate)
Re: GangZoneCreate error or something.... -
Gammix - 23.04.2016
Quote:
Originally Posted by povargek
Код:
gangzonetwo= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016);
gangzonethree= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016);
String's is equal! (after GangZoneCreate)
|
Right word would be the parameters (
gangzonetwo and
gangzonethree have same coordinates)
Also, instead of using OnPlayerUpdate, use the callback given in the include:
OnPlayerEnterGangZone, which is called only once when a player enters in a gangzone area.
Re: GangZoneCreate error or something.... -
Alpha000 - 24.04.2016
i know they are equal but it should send both messages instead of only for two.....onplayerentergangzone lemme try.