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
#2

If you mean that the listed locations do not show up, then the problem is in the coordinates being incorrect. Or if you have two areas overlapping each other, then it might do that.
Reply
#3

That coordinates are took by using /save,they are interiors,maybe it's for that they don't show?
Reply
#4

Well I assume that the three first locations aren't interiors, if they do not work your coordinates are wrong. Make sure you understand how the coordinates work. If you have mixed the coordinates (e.g. min X instead of max X) it won't also work.
Reply
#5

Quote:
Originally Posted by spedico
Посмотреть сообщение
Well I assume that the three first locations aren't interiors, if they do not work your coordinates are wrong. Make sure you understand how the coordinates work. If you have mixed the coordinates (e.g. min X instead of max X) it won't also work.
Yes sorry,the first 3 coordinates aren't interiors.

I used /save,and in the savedpositions.txt file i copied the X,Y and Z coordinates.

Since the other zone coordinates requires Xmax,Ymax,Zmax,i've added the same normal X,Y,Z coordinates.I tried just setting the normal X,Y and Z coordinates,but nothing.
Reply
#6

You have repeated multiple X,Y,Z values, hoping it would work? - This is your problem.
Reply
#7

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Since the other zone coordinates requires Xmax,Ymax,Zmax,i've added the same normal X,Y,Z coordinates.I tried just setting the normal X,Y and Z coordinates,but nothing.
^ This.
Reply
#8

Bump.
Reply
#9

Bump,still need help with this.
Reply
#10

Quote:
Originally Posted by ******
Посмотреть сообщение
This was the answer, you've just ignored it.
I know,but if i dont repeat the same X,Y and Z values,the zone name doesn't show in any way.

Quote:
Originally Posted by MP2
Посмотреть сообщение
Your coordinates must be wrong. Re-save them.
I'll try.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)