Zone doesn't show
#1

pawn Код:
Timer etc:
...
//Zone
new Float:XX, Float:YY, Float:ZZ;
GetPlayerPos(playerid,XX,YY,ZZ);
for(new zone = 0; zone < MAX_ZONES; zone++)
{
if(XX >= ZoneInfo[zone][zMinx] && XX < ZoneInfo[zone][zMaxx] && YY >= ZoneInfo[zone][zMiny] && YY < ZoneInfo[zone][zMaxy])
{
if(ZoneInfo[zone][zTeamid] == 0)
{
TextDrawHideForPlayer(playerid,NoZoneTextDraw[playerid]);
TextDrawHideForPlayer(playerid,GangZoneTextDraw[playerid]);
TextDrawSetString(GangZoneTextDraw[playerid],"]Free] Hood");
TextDrawColor(GangZoneTextDraw[playerid],0xFFFFFFAA);
TextDrawShowForPlayer(playerid,GangZoneTextDraw[playerid]);
}
if(ZoneInfo[zone][zTeamid] > 0)
{
TextDrawHideForPlayer(playerid,NoZoneTextDraw[playerid]);
TextDrawHideForPlayer(playerid,GangZoneTextDraw[playerid]);
format(string, sizeof(string),"]%s] Hood",gangNames[ZoneInfo[zone][zTeamid]]);
TextDrawSetString(GangZoneTextDraw[playerid], string);
TextDrawColor(GangZoneTextDraw[playerid],gangColor[ZoneInfo[zone][zTeamid]]);
TextDrawShowForPlayer(playerid,GangZoneTextDraw[playerid]);
}
}
else
{
TextDrawHideForPlayer(playerid,NoZoneTextDraw[playerid]);
TextDrawHideForPlayer(playerid,GangZoneTextDraw[playerid]);
}
}
//
...
only the last zone show, why?
Reply
#2

bump
Reply
#3

I knew no one will help to me ..
Reply
#4

please help its very important!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)