Multi-dimensional array error
#1

Code:
C:\Users\Andre\Desktop\mtrp-final.pwn(1596) : error 052: multi-dimensional arrays must be fully initialized
The Housecars thing where the error is
Code:
new Float:HouseCarSpawns[35][4] = {
{2452.7283,-1049.5295,59.2484,175.7684},//Trailer
{2064.4,-1694.4,13.1,271.1561},//Vito
{2137.6025,-1369.6079,24.3998,0.2954},//Don
{1109.8,-968.0,42.7,0.0},//house 3
{2497.6274,-2025.6306,13.2521,355.4281}, // House 4
{2645.0,-1990.8,13.1,180.0},//House - 5
{2379.0803,-1352.7295,23.8044,359.2548},//R Andos house.
{1910.5149,-1120.5304,25.4493,177.8350},//house 7
{828.8,-887.0,68.5,230.7095},//House 8
{2149.6,-1610.9,14.0,90.7904},//House 9
{760.1,-1687.8,4.3,180.6},//House 10
{645.5,-1616.1,14.9,0.0},//House 11
{2135.6790,-1328.4812,25.3132,359.4437},//Kenny's house.
{1971.9521,-1674.3673,15.6250,267.4205},//Luis' house.
{959.5864,-901.0845,45.8584,177.3087},//House 14
{2445.8,-1326.8,23.6,18.4},//House 15
{2845.9,-1286.8,18.9,90.0},//house 16
{2510.2065,-1686.6537,13.3436,40.9452}, //Grove St. Crib NOT FINISHED
{2770.9866,-1319.6285,39.5358,269.3118},//Dizzys Crib
{2812.3079,-1249.8522,46.6584,121.1268},//Akhils
{1514.0,-694.6,94.5,90.0},//House 20
{1246.7,-1107.6,25.5,266.4},//House 21
{831.7,-857.5,69.9,180.0},//House 22
{1007.9,-659.4,121.1,130.6194},//House 23
{1110.0,-726.4,100.1,90.0},//House 24
{259.7,-1221.0,74.7,202.0011},//House 25
{1463.7,-901.7,55.8,359.0},//house 26
{1440.1,-890.6,51.2,0.0},//house 27
{2188.9983,-1808.7736,13.1800,359.5364},//Farag Mansion /28 NOT FINISHED
{283.6283,-1160.9851,80.6183,225.7260}, //Richman Mansion /29
{931.5033,-852.6615,93.1273,22.2322},// Mulholland Heights /30
{686.2572,-1072.3381,49.5535,62.7273},//Shins house.
{224.3580,-1267.8698,65.2954,324.8690} //Jo herring 34
}; (thats the line where error is)
Can anyone help me please?
Reply
#2

multi-dimensional arrays must be fully initialized
If an array with more than one dimension is initialized at its
declaration, then there must be equally many literal vectors/subarrays
at the right of the equal sign (“=”) as specified for the major
dimension(s) of the array.

byawn-lang
Reply
#3

I have "{" after the "=" . Sorry but i didnt understand, can you explain a little easier way?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)