error 018: initialization data exceeds declared size,Need help!
#1

May i get any help on this,everything works except this.
This pops out - error 018: initialization data exceeds declared size
__________________________________________________ __________


new Float:InfoPickups[36][3] = {
{2029.5945,-1404.6426,17.2512},
{349.5560,161.6693,1019.9912},
{523.6057,-1812.9794,6.5713},
{1424.1729,-1317.9955,13.5547},
{-792.9693,500.5572,1367.3672},
{-779.3134,497.8989,1371.7490},
{1488.6949,-1721.7136,8.2067},
{358.2374,161.3243,1008.3828},
{1215.1304,-11.8431,1000.9219},
{1793.02,-1296.56,13.44},
{2072.5486,-1582.8029,13.4741},
{213.8549,-230.5761,1.7786},
{-86.1251,2.6412,3.1172},
{2137.6624,-2282.3455,20.6719},
{379.1396,-114.2661,1001.4922},
{1174.9100,-1365.7330,13.9876},
{1174.9591,-1369.8761,23.9736},
{1381.0413,-1088.8511,27.3906},
{1505.2416,-1694.5597,14.0469},
{362.1231,173.6424,1008.3828},
{1490.3195,1305.6976,1093.2964},
{249.8574,67.8508,1003.6406},
{359.6820,207.0294,1008.3828},
{-38.8664,56.3031,3.1172},
{2022.1492,-1108.7837,26.2031},
{242.7591,66.4315,1003.6406},
{25.1811,1968.5167,17.6406},
{231.4331,140.4850,1003.0234},
{1510.6852,-1458.0654,9.5000},
{1494.3761,-1467.0068,40.5234},
{2073.2979,-1831.1228,13.5469},
{1024.9756,-1030.7930,32.0257},
{488.3819,-1733.0563,11.1752},
{719.8940,-464.8272,16.3359},
{248.4994,-33.1366,1.5781},
{2230.3579,-2286.2107,14.3751},
};
Reply
#2

pawn Код:
new Float:InfoPickups[37][3] = {
needs to be 1 more then the actual data inside it
Reply
#3

But when i do that then comes out : error 029: invalid expression, assumed zero
error 008: must be a constant expression; assumed zero
Reply
#4

Код:
new Float:InfoPickups[37][3] = {
{2029.5945,-1404.6426,17.2512},
{349.5560,161.6693,1019.9912},
{523.6057,-1812.9794,6.5713},
{1424.1729,-1317.9955,13.5547},
{-792.9693,500.5572,1367.3672},
{-779.3134,497.8989,1371.7490},
{1488.6949,-1721.7136,8.2067},
{358.2374,161.3243,1008.3828},
{1215.1304,-11.8431,1000.9219},
{1793.02,-1296.56,13.44},
{2072.5486,-1582.8029,13.4741},
{213.8549,-230.5761,1.7786},
{-86.1251,2.6412,3.1172},
{2137.6624,-2282.3455,20.6719},
{379.1396,-114.2661,1001.4922},
{1174.9100,-1365.7330,13.9876},
{1174.9591,-1369.8761,23.9736},
{1381.0413,-1088.8511,27.3906},
{1505.2416,-1694.5597,14.0469},
{362.1231,173.6424,1008.3828},
{1490.3195,1305.6976,1093.2964},
{249.8574,67.8508,1003.6406},
{359.6820,207.0294,1008.3828},
{-38.8664,56.3031,3.1172},
{2022.1492,-1108.7837,26.2031},
{242.7591,66.4315,1003.6406},
{25.1811,1968.5167,17.6406},
{231.4331,140.4850,1003.0234},
{1510.6852,-1458.0654,9.5000},
{1494.3761,-1467.0068,40.5234},
{2073.2979,-1831.1228,13.5469},
{1024.9756,-1030.7930,32.0257},
{488.3819,-1733.0563,11.1752},
{719.8940,-464.8272,16.3359},
{248.4994,-33.1366,1.5781},
{2230.3579,-2286.2107,14.3751}
};
Reply
#5

error 052: multi-dimensional arrays must be fully initialized ?
Reply
#6

jsut do this
pawn Код:
new Float:InfoPickups[][3] = {
then there can be as much as u want
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)