GangZone help?
#1

I'm looking to add gangzones to my gamemode.

I don't want to use GangZoneCreate 20 or more times, i just want it in a few lines, and reading from my co-ordinates.

I keep getting error messages, "tag mismatch" for each of the lines with co-ords on

Heres what i have.

pawn Код:
enum gZoneInfo
{
    Text:gZoneText,
    gZoneID,
    gZoneOwner,
    gZoneColor,
    gZoneWar,
    gZoneTimer,
    Float:gZoneMinX,
    Float:gZoneMinY,
    Float:gZoneMaxX,
    Float:gZoneMaxY,
};

new gZones[MAX_TURFS][gZoneInfo] = {

{2704.0, -2055.0, 2848.5, -1880.0}, //sevi
{2431.0, -1742.0, 2653.0, -1600.0}, //grov
{2431.0, -1600.0, 2653.0, -1434.5}, //g1a
{2511.5, -1434.5, 2653.0, -1262.0}, //g2ar
{2373.5, -1434.5, 2511.5, -1262.0}, //g2al
{2340.0, -1742.0, 2431.0, -1434.5}, //g+1
{2373.5, -1262.0, 2653.0, -1155.5}, //g3ah
{2653.0, -1677.5, 2747.5, -1155.5}, //g-1v
{2340.0, -1982.5, 2537.5, -1742.0}, //g1b
{2193.5, -1982.5, 2340.0, -1658.0}, //g1b+1
{2171.25, -1434.5, 2373.5, -1300.5}, //g2a+1
{2193.5, -1658.0, 2340.0, -1434.5}, //g+2
{1965.5, -1982.5, 2193.5, -1730.0}, //g1b+2
{1965.5, -1730.0, 2193.5, -1575.0}, //g+3
{1965.5, -1575.0, 2193.5, -1434.5}, //g+31a
{1970.5, -1434.5, 2068.5, -1221.5}, //g+32aL
{2068.5 -1434.5, 2171.25, -1221.5}, //g+32aR
{2171.25, -1300.5, 2373.5, -1095.0}, //g3a+1
{2072.0, -1221.5, 2171.25, -995.0}, //g3a+2
{1970.5, -1045.0}, 2072.0, -1078.0}, //lsparkR
{1850.0, -1345.0, 1970.5, -1045.0}, //lsparkL
{1815.5, -1613.5, 1970.5, -1345.0}, //lsparkL1b
{1765.0, -1982.5, 1965.5, -1613.5}, //g+4
{1705.0, -1450.5, 1850.0, -1150.0} //lspark+1
};
any help would be great.
Reply
#2

Look at it like this and you will see the types don't match up:

pawn Код:
enum gZoneInfo
{
    Text:0,
    1, //integer type
    2,
    3,
    4,
    5,
    Float:6,
    Float:7,
    Float:8,
    Float:9,
};
pawn Код:
{
//a single type row should be: Text, int, int, int, int, int, float, float, float, float
0 : 2704.0,
1 : -2055.0,
2 : 2848.5,
3 : -1880.0
},
As you can see you are using it wrong, you are passing incorrect types.
Reply
#3

Oh bugger. Thanks lol i feel so dumb now

Thanks again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)