Initialization data exceeds declared size
#2

pawn Код:
enum eTruckLocations
{
    tName[64],
    Float: tPositionX,
    Float: tPositionY,
    Float: tPositionZ,
}

new Float: TruckLocations[][eTruckLocations] =
{
    {"LS Construction Site", 1859.0, -1314.0, 14.0},
    {"SF Construction Site", -2083.0, 209.0, 35.5},
    {"LV Construction Site", 2708.0, 878.0, 10.0},
    {"Avery Construction", 312.25, -233.75, 1.6},
    {"Clown's Pocket Constr.", 2467.0, 1923.0, 9.8},
    {"Solarin Industries", -1822.5, 41.25, 15.25},
    {"Blueberry Truck Terminal", 52.75, -278.0, 1.7},
    {"KACC Military Fuels", 2708.5, 2641.25, 11.0},
    {"SA Federal Mint", -2441.0, 521.5, 30.0},
    {"Angel Pine Sawmill", -1965.75, -2436.0, 30.7},
    {"Quarry", 587.25, 844.75, -42.5}
};
Usage:

pawn Код:
print(TruckLocations[0][tName]);
Reply


Messages In This Thread
Initialization data exceeds declared size - by Neil. - 22.01.2013, 00:28
Re: Initialization data exceeds declared size - by SuperViper - 22.01.2013, 00:39
Re: Initialization data exceeds declared size - by Neil. - 22.01.2013, 00:44
Re: Initialization data exceeds declared size - by SuperViper - 22.01.2013, 00:47
Re: Initialization data exceeds declared size - by Neil. - 22.01.2013, 00:50

Forum Jump:


Users browsing this thread: 1 Guest(s)