19.03.2012, 17:48
'Sup y'all?
I get this 2 errors because of my arrays I've just defined:
I've commented the line(s):
I get this 2 errors because of my arrays I've just defined:
Код:
D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(263) : error 052: multi-dimensional arrays must be fully initialized D:\Program Files\GTA San Andreas\SAMP_Server\gamemodes\deathmatch.pwn(305) : error 052: multi-dimensional arrays must be fully initialized Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
PHP код:
new TeamInfo[ MAX_TEAMS ][ teaminfo ] = {
{ "Grove Street", TEAM_GROVE_COLOR, 0, 0, 0, 0, 0},
{ "Ballas", TEAM_BALLA_COLOR, 0, 0, 0, 0, 0},
{ "Vagos", TEAM_VAGOS_COLOR, 0, 0, 0, 0, 0},
{ "Aztecas", TEAM_AZTECAS_COLOR, 0, 0, 0, 0, 0},
{ "Police", TEAM_POLICE_COLOR, 0, 0, 0, 0, 0},
{ "San Fierro Rifas", TEAM_RIFAS_COLOR, 0, 0, 0, 0, 0},
{ "Loco Syndicato", TEAM_LOCO_COLOR, 0, 0, 0, 0, 0}
}; //the first one
PHP код:
new turfs[ MAX_TURFS ][ tinfo ] = {
{ 0, "Ganton", 2083.306884, -1757.840332, 2643.306884, -1573.840332, TEAM_GROVE_COLOR, GROVE, -1, 0, 0, 0},
{ 1, "Idlewood", 2380.865966, -2001.554565, 2644.865966, -1737.554565, TEAM_GROVE_COLOR, GROVE, -1, 0, 0, 0},
{ 2, "Ganton", 2145.166259, -1995.344848, 2385.166259, -1755.344848, TEAM_GROVE_COLOR, GROVE, -1, 0, 0, 0},
{ 3, "Glenpark", 1783.376220, -1398.963745, 2327.376220, -1030.963745, TEAM_BALLA_COLOR, BALLA, -1, 0, 0, 0},
{ 4, "Jefferson", 1564.102172, -1224.421264, 1892.102172, -1032.421264, TEAM_BALLA_COLOR, BALLA, -1, 0, 0, 0},
{ 5, "Glenpark", 1556.644531, -1398.070190, 1788.644531, -1222.070190, TEAM_BALLA_COLOR, BALLA, -1, 0, 0, 0},
{ 6, "East Los Santos", 2389.563720, -1238.908569, 2893.563720, -1046.908569, TEAM_VAGOS_COLOR, VAGOS, -1, 0, 0, 0},
{ 7, "Los Flores", 2327.079345, -1324.859741, 2391.079345, -1044.859741, TEAM_VAGOS_COLOR, VAGOS, -1, 0, 0, 0},
{ 8, "East Los Santos", 2369.286132, -1432.190307, 2705.286132, -1208.190307, TEAM_VAGOS_COLOR, VAGOS, -1, 0, 0, 0},
{ 9, "Willowfield", 1636.727661, -2174.682861, 2148.727539, -1950.682861, TEAM_AZTECAS_COLOR, AZTECAS, -1, 0, 0, 0},
{ 10, "El Corona", 1801.938842, -1965.281616, 2089.938964, -1741.281616, TEAM_AZTECAS_COLOR, AZTECAS, -1, 0, 0, 0},
{ 11, "Willowfield", 2073.393798, -2143.447021, 2409.393798, -1991.447021, TEAM_AZTECAS_COLOR, AZTECAS, -1, 0, 0, 0},
{ 12, "Commerce", 1279.003295, -1740.605834, 1831.003295, -1588.605834, TEAM_POLICE_COLOR, POLICE, -1, 0, 0, 0},
{ 13, "Idlewood", 1355.672607, -1599.537353, 1563.672607, -1007.537353, TEAM_POLICE_COLOR, POLICE, -1, 0, 0, 0},
{ 14, "Commerce", 1563.951049, -1595.397460, 1931.951049, -1499.397460, TEAM_POLICE_COLOR, POLICE, -1, 0, 0, 0},
{ 15, "Los Santos International", 1354.048217, -2387.176269, 1666.048217, -2179.176269, TEAM_RIFAS_COLOR, RIFAS, -1, 0, 0, 0},
{ 16, "Los Santos International", 1648.131103, -2333.540039, 1888.131103, -2245.540039, TEAM_RIFAS_COLOR, RIFAS, -1, 0, 0, 0},
{ 17, "Los Santos International", 1368.555419, -2624.943847, 2256.555419, -2376.943847, TEAM_RIFAS_COLOR, RIFAS, -1, 0, 0, 0},
{ 18, "Market", 1029.579833, -1608.954956, 1357.579833, -1136.954956, TEAM_LOCO_COLOR, LOCO, -1, 0, 0, 0},
{ 19, "Verona Beach", 992.831542, -1859.543090, 1288.831542, -1603.543090, TEAM_LOCO_COLOR, LOCO, -1, 0, 0, 0},
{ 20, "Market", 1286.829345, -1878.977539, 1806.829345, -1726.977539, TEAM_LOCO_COLOR, LOCO, -1, 0, 0, 0}
}; //the second one