SA-MP Forums Archive
Zone doesn't show - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Zone doesn't show (/showthread.php?tid=131929)



Zone doesn't show - Headshot1108 - 05.03.2010

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?


Re: Zone don't show - Headshot1108 - 05.03.2010

bump


Re: Zone don't show - Headshot1108 - 06.03.2010

I knew no one will help to me ..


Re: Zone don't show - Headshot1108 - 06.03.2010

please help its very important!