23.05.2012, 21:19
Hello,i've added a filterscript to show the zone name in a textdraw,today i've added some new custom zones.
Here is:
The problem is,it doesn't show the zone name,nothing,other zones it works,just on this doesn't work.
Here is the public to update the textdraw with the zone name:
What's wrong?
Here is:
pawn Код:
static const gSAZones[][SAZONE_MAIN] = {
// NAME AREA (Xmin,Ymin,Zmin,Xmax,Ymax,Zmax)
{"Wang Cars", {-1955.6816,306.0406,41.0471,-1955.6816,306.0406,41.0471}},
{"San Fierro Fire Dept", {-2051.8684,86.1005,28.3977,-2051.8684,86.1005,28.3977}},
{"Drug Factory", {-2141.4915,-256.7618,40.7195,-2141.4915,-256.7618,40.7195}},
{"Hem Lock Tatoo", {-201.7283,-7.8537,1002.2734,-201.7283,-7.8537,1002.2734}},
{"Ammunation in Ocean Flats", {296.7915,-35.3443,1001.5156,296.7915,-35.3443,1001.5156}},
{"Cluckin Bell in Ocean Flats", {379.6270,-8.7878,1001.8516,379.6270,-8.7878,1001.8516}},
{"Binco in Juniper Hill", {216.6623,-100.1878,1005.2578,216.6623,-100.1878,1005.2578}},
{"Burger Shot in Juniper Hollow", {379.7124,-59.6829,1001.5078,379.7124,-59.6829,1001.5078}}
};
Here is the public to update the textdraw with the zone name:
pawn Код:
public Zones_Update()
{
new zone[MAX_ZONE_NAME], string[30];
for(new i=0; i<MAX_PLAYERS; i++){
GetPlayer2DZone(i, zone, MAX_ZONE_NAME);
format(string,sizeof(string),"%s", zone);
TextDrawSetString(Zones[i], string);
TextDrawShowForPlayer(i, Zones[i]);}
return 1;
}