Problem with gangzone
#2

Just Load it Because GangZone still have value (you said relog)
if you want to save just save when take territory or some another condition

Example :

PHP код:
if(PlayerStats[playerid][GangID] != -1SetPlayerColor(playeridGangInfo[PlayerStats[playerid][GangID]][Color]); 
              for(new 
zoneid 1zoneid MAX_ZONESzoneid++)
    {
                       if(
ZoneInfo[zoneid][OfGangID] == -1)
               {
                
GangZoneShowForPlayer(playeridZoneInfo[zoneid][GZID], GCOLOR_GRIGIO);
            }
            else
            {
                
GangZoneShowForPlayer(playeridZoneInfo[zoneid][GZID], GangInfo[ZoneInfo[zoneid][OfGangID]][Color]);
            }
           
    } 
and you load gangzone when ongamemodeinit or filterscriptinit

Maybe Color Disappear Try to write some Stock get color out

IE :
PHP код:

stock GetZoneColor
(GangID)
{
            switch(
GangInfo[GangID][Color]
           {
             case 
: return GCOLOR_BLAHBLAH// case zoneid == 1
             
case : return GANGZONE_COLOR_BLAHBLAH// case zoneid ==2
          
}

and put in
pawn Код:
GangZoneShowForPlayer(playerid, ZoneInfo[zoneid][GZID], GetZoneColor(zoneid));
Good Luck
Reply


Messages In This Thread
Problem with gangzone - by Saliim - 23.04.2016, 00:07
Re: Problem with gangzone - by colonel-top - 23.04.2016, 07:22
Re: Problem with gangzone - by Saliim - 23.04.2016, 14:21

Forum Jump:


Users browsing this thread: 1 Guest(s)