[Ajuda] Erro
#1

Erro :
Код:
C:\Users\RodiauOUI\Desktop\server\gamemodes\rpg.PWN(3034) : error 052: multi-dimensional arrays must be fully initialized
Linha :
pawn Код:
};
Code:
Код HTML:
new Float:SpawnOrg[MAX_ORGS-1][3] = {
{255.9888,66.1293,1003.6406},
{255.9888,66.1293,1003.6406},
{-792.5248,1997.0043,2.7090},
{-2665.2407,639.5113,14.4531},
{2341.5896,-1931.4883,13.5782},
{-310.5076,1771.5315,43.6406},
{1657.5248,-1340.3083,17.4379},
{-345.4239,-1046.2933,59.8125},
{733.0558,-1346.8624,13.5132},
{1781.3578,-1705.4886,13.5234},
{2046.1891,-1911.4795,13.5469},
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{2519.1028,-1673.4447,14.3911},
{414.0826,2536.1604,19.1484},
{1538.2864,-1476.9156,9.5000},
{1153.7268,-1186.9463,32.0275},
{2809.6565,-1168.2618,1025.5703},
{-2164.8979,646.2708,1057.5938},
{1305.3534,-868.5286,39.5781},
{-1691.6088,1367.4044,7.1797},
{1005.3582,-1462.7361,13.5511},
{938.1892,4.0065,1000.9297},
{2444.7869,-2120.9194,13.5469},
{1178.1,-1321.0,14.1},//FAIL
{-2446.5398,515.9565,30.2340},
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{2280.1497,2293.6270,4.9634},
{1178.1,-1321.0,14.1},//FAIL
{-2457.6282,793.7335,35.1719},
{-2455.7693,-141.0096,26.1311},
{-2457.9734,127.8364,35.1719},
{-2353.5662,995.1847,50.8984},
{-2620.7378,1414.9355,7.0938},
{-2323.3689,-149.2914,35.5547},
{-1622.2772,677.4626,-4.9063},
{-2025.7383,379.5803,35.1719},
{-2764.8596,378.7803,6.3402},
{-2655.1001,638.5510,14.4531},
{-2274.3704,529.5526,35.0286}
};
Reply
#2

Isto deve resolver o seu problema .


Troque o cуdigo que vocк postou, por este :


pawn Код:
new Float:SpawnOrg[44][3] = {
{255.9888,66.1293,1003.6406},
{255.9888,66.1293,1003.6406},
{-792.5248,1997.0043,2.7090},
{-2665.2407,639.5113,14.4531},
{2341.5896,-1931.4883,13.5782},
{-310.5076,1771.5315,43.6406},
{1657.5248,-1340.3083,17.4379},
{-345.4239,-1046.2933,59.8125},
{733.0558,-1346.8624,13.5132},
{1781.3578,-1705.4886,13.5234},
{2046.1891,-1911.4795,13.5469},
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{2519.1028,-1673.4447,14.3911},
{414.0826,2536.1604,19.1484},
{1538.2864,-1476.9156,9.5000},
{1153.7268,-1186.9463,32.0275},
{2809.6565,-1168.2618,1025.5703},
{-2164.8979,646.2708,1057.5938},
{1305.3534,-868.5286,39.5781},
{-1691.6088,1367.4044,7.1797},
{1005.3582,-1462.7361,13.5511},
{938.1892,4.0065,1000.9297},
{2444.7869,-2120.9194,13.5469},
{1178.1,-1321.0,14.1},//FAIL
{-2446.5398,515.9565,30.2340},
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{1178.1,-1321.0,14.1},//FAIL
{2280.1497,2293.6270,4.9634},
{1178.1,-1321.0,14.1},//FAIL
{-2457.6282,793.7335,35.1719},
{-2455.7693,-141.0096,26.1311},
{-2457.9734,127.8364,35.1719},
{-2353.5662,995.1847,50.8984},
{-2620.7378,1414.9355,7.0938},
{-2323.3689,-149.2914,35.5547},
{-1622.2772,677.4626,-4.9063},
{-2025.7383,379.5803,35.1719},
{-2764.8596,378.7803,6.3402},
{-2655.1001,638.5510,14.4531},
{-2274.3704,529.5526,35.0286}
};


Qualquer problema, baixa redefinir o valor dentro da array [44] para um nъmero igual б quantidade de trincas de coordenadas que estгo dentro das chaves da variбvel .



Espero ter ajudado .
Reply
#3

Rjjj, pode ver a MP que te enviei porfavor?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)