initialization data exceeds declared size
#1

this seems so wrong? i dont get it, i made it right.

pawn Код:
new Float:SumoSpawns[][][4] =
{
    {
        {-14.2938, -26.3739, 20.7116, 247.508},
        {-16.5276, -46.3495, 20.7115, 284.951},
        {-7.134, -64.6812, 20.7151, 310.589},
        {51.3768, -54.7158, 20.7115, 66.3795},
        {51.9395, -27.5825, 20.7072, 105.222},
        {32.16, -7.6037, 20.7115, 150.376},
        {30.9196, -73.2808, 20.7114, 17.6928},
        {10.1598, -74.6931, 20.7125, 345.668},
        {18.0989, -5.5533, 20.7111, 178.833},
        {-0.8377, -10.9782, 20.7122, 209.038}
    },
    {
        {-3394.49, -736.775, 39.7579, 338.668},
        {-3373.84, -676.179, 39.7567, 161.317},
        {-3356.8, -690.655, 39.7563, 125.309},
        {-3375.6, -736.247, 39.756, 24.415},
        {-3355.94, -717.669, 39.7563, 69.1999},
        {-3520.3, -690.31, 39.8797, 129.433},
        {-3548.31, -678.434, 39.8781, 190.088},
        {-3519.32, -731.974, 39.878, 47.8567},
        {-3543.37, -743.22, 39.8782, 2.7406},
        {-3576.28, -715.943, 39.8782, 280.312}
    },
    {
        {-1360.1183,933.1964,1036.1301,10.3720},
        {-1341.7583,936.4503,1036.1600,29.7745},
        {-1306.3081,950.4942,1036.3336,56.4532},
        {-1278.0344,990.6033,1036.9572,89.4892},
        {-1295.4337,1029.8514,1037.6378,124.4763},
        {-1335.8350,1053.1943,1038.0981,147.3412},
        {-1361.8813,1059.2568,1038.2458,161.8311},
        {-1413.7582,1059.7299,1038.3368,176.1552},
        {-1458.7390,1053.2983,1038.3125,199.7089},
        {-1484.6276,1044.2686,1038.2084,223.3829},
        {-1515.6632,1010.6856,1037.7023,253.0477},
        {-1515.3605,983.1185,1037.2445,280.7602},
        {-1502.9974,961.5406,1036.8660,294.0042}
    }
};
Reply
#2

This might be a better way of doing that,
pawn Код:
new Float:SumoSpawns[][4] =
{
    {-14.2938, -26.3739, 20.7116, 247.508},
    {-16.5276, -46.3495, 20.7115, 284.951},
    {-7.134, -64.6812, 20.7151, 310.589},
    {51.3768, -54.7158, 20.7115, 66.3795},
    {51.9395, -27.5825, 20.7072, 105.222},
    {32.16, -7.6037, 20.7115, 150.376},
    {30.9196, -73.2808, 20.7114, 17.6928},
    {10.1598, -74.6931, 20.7125, 345.668},
    {18.0989, -5.5533, 20.7111, 178.833},
    {-0.8377, -10.9782, 20.7122, 209.038},
    {-3394.49, -736.775, 39.7579, 338.668},
    {-3373.84, -676.179, 39.7567, 161.317},
    {-3356.8, -690.655, 39.7563, 125.309},
    {-3375.6, -736.247, 39.756, 24.415},
    {-3355.94, -717.669, 39.7563, 69.1999},
    {-3520.3, -690.31, 39.8797, 129.433},
    {-3548.31, -678.434, 39.8781, 190.088},
    {-3519.32, -731.974, 39.878, 47.8567},
    {-3543.37, -743.22, 39.8782, 2.7406},
    {-3576.28, -715.943, 39.8782, 280.312},
    {-1360.1183,933.1964,1036.1301,10.3720},
    {-1341.7583,936.4503,1036.1600,29.7745},
    {-1306.3081,950.4942,1036.3336,56.4532},
    {-1278.0344,990.6033,1036.9572,89.4892},
    {-1295.4337,1029.8514,1037.6378,124.4763},
    {-1335.8350,1053.1943,1038.0981,147.3412},
    {-1361.8813,1059.2568,1038.2458,161.8311},
    {-1413.7582,1059.7299,1038.3368,176.1552},
    {-1458.7390,1053.2983,1038.3125,199.7089},
    {-1484.6276,1044.2686,1038.2084,223.3829},
    {-1515.6632,1010.6856,1037.7023,253.0477},
    {-1515.3605,983.1185,1037.2445,280.7602},
    {-1502.9974,961.5406,1036.8660,294.0042}
};
EDIT: Left out a comma
Reply
#3

pawn Код:
new Float:SumoSpawns[][][4] =
{
    {
        {-14.2938, -26.3739, 20.7116, 247.508},
        {-16.5276, -46.3495, 20.7115, 284.951},
        {-7.134, -64.6812, 20.7151, 310.589},
        {51.3768, -54.7158, 20.7115, 66.3795},
        {51.9395, -27.5825, 20.7072, 105.222},
        {32.16, -7.6037, 20.7115, 150.376},
        {30.9196, -73.2808, 20.7114, 17.6928},
        {10.1598, -74.6931, 20.7125, 345.668},
        {18.0989, -5.5533, 20.7111, 178.833},
        {-0.8377, -10.9782, 20.7122, 209.038}
    },
    {
        {-3394.49, -736.775, 39.7579, 338.668},
        {-3373.84, -676.179, 39.7567, 161.317},
        {-3356.8, -690.655, 39.7563, 125.309},
        {-3375.6, -736.247, 39.756, 24.415},
        {-3355.94, -717.669, 39.7563, 69.1999},
        {-3520.3, -690.31, 39.8797, 129.433},
        {-3548.31, -678.434, 39.8781, 190.088},
        {-3519.32, -731.974, 39.878, 47.8567},
        {-3543.37, -743.22, 39.8782, 2.7406},
        {-3576.28, -715.943, 39.8782, 280.312}
    },
    {
        {-1360.1183,933.1964,1036.1301,10.3720},
        {-1341.7583,936.4503,1036.1600,29.7745},
        {-1306.3081,950.4942,1036.3336,56.4532},
        {-1278.0344,990.6033,1036.9572,89.4892},
        {-1295.4337,1029.8514,1037.6378,124.4763},
        {-1335.8350,1053.1943,1038.0981,147.3412},
        {-1361.8813,1059.2568,1038.2458,161.8311},
        {-1413.7582,1059.7299,1038.3368,176.1552},
        {-1458.7390,1053.2983,1038.3125,199.7089},
        {-1484.6276,1044.2686,1038.2084,223.3829}/*,
        {-1515.6632,1010.6856,1037.7023,253.0477},
        {-1515.3605,983.1185,1037.2445,280.7602},
        {-1502.9974,961.5406,1036.8660,294.0042}*/

    }
};
This code is working but you need to remove 3 coodonates.
Reply
#4

edit- why remove 3 i need them all

no its actually surpose to be like
pawn Код:
new Float:SumoSpawns[MAX_MAPS][MAX_PLAYERS][4] =
{
    {
        {-14.2938, -26.3739, 20.7116, 247.508},
        {-16.5276, -46.3495, 20.7115, 284.951},
        {-7.134, -64.6812, 20.7151, 310.589},
        {51.3768, -54.7158, 20.7115, 66.3795},
        {51.9395, -27.5825, 20.7072, 105.222},
        {32.16, -7.6037, 20.7115, 150.376},
        {30.9196, -73.2808, 20.7114, 17.6928},
        {10.1598, -74.6931, 20.7125, 345.668},
        {18.0989, -5.5533, 20.7111, 178.833},
        {-0.8377, -10.9782, 20.7122, 209.038}
    },
    {
        {-3394.49, -736.775, 39.7579, 338.668},
        {-3373.84, -676.179, 39.7567, 161.317},
        {-3356.8, -690.655, 39.7563, 125.309},
        {-3375.6, -736.247, 39.756, 24.415},
        {-3355.94, -717.669, 39.7563, 69.1999},
        {-3520.3, -690.31, 39.8797, 129.433},
        {-3548.31, -678.434, 39.8781, 190.088},
        {-3519.32, -731.974, 39.878, 47.8567},
        {-3543.37, -743.22, 39.8782, 2.7406},
        {-3576.28, -715.943, 39.8782, 280.312}
    },
    {
        {-1360.1183,933.1964,1036.1301,10.3720},
        {-1341.7583,936.4503,1036.1600,29.7745},
        {-1306.3081,950.4942,1036.3336,56.4532},
        {-1278.0344,990.6033,1036.9572,89.4892},
        {-1295.4337,1029.8514,1037.6378,124.4763},
        {-1335.8350,1053.1943,1038.0981,147.3412},
        {-1361.8813,1059.2568,1038.2458,161.8311},
        {-1413.7582,1059.7299,1038.3368,176.1552},
        {-1458.7390,1053.2983,1038.3125,199.7089},
        {-1484.6276,1044.2686,1038.2084,223.3829},
        {-1515.6632,1010.6856,1037.7023,253.0477},
        {-1515.3605,983.1185,1037.2445,280.7602},
        {-1502.9974,961.5406,1036.8660,294.0042}
    }
};
if i remove the last one everything works fine. max_maps is also set to 3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)