Zone name
#1

Hello,i've added a filterscript to show the zone name in a textdraw,today i've added some new custom zones.

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}}
};
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:

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;
}
What's wrong?
Reply


Messages In This Thread
Zone name - by Face9000 - 23.05.2012, 21:19
Re: Zone name - by spedico - 23.05.2012, 21:25
Re: Zone name - by Face9000 - 23.05.2012, 21:28
Re: Zone name - by spedico - 23.05.2012, 21:32
Re: Zone name - by Face9000 - 23.05.2012, 21:35
Re: Zone name - by Pizzy - 23.05.2012, 21:38
Re: Zone name - by Face9000 - 23.05.2012, 21:39
Re: Zone name - by Face9000 - 24.05.2012, 08:31
Re: Zone name - by Face9000 - 29.05.2012, 07:49
Re: Zone name - by Face9000 - 29.05.2012, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)