SA-MP Forums Archive
[HELP] some error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] some error (/showthread.php?tid=159738)



[FIXED] some error - borisblat - 14.07.2010

the error:
C:\Users\קוסטה\המשחקים שלי\GTA San Andreas\GTA San Andreas\gamemodes\WAR.pwn(197) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

new Float:PropertyLocations[MAX_PROPERTIES][3] = {
{2074.0938,1911.5242,14.0569},
{2181.8872,1285.7103,42.9215},
{1911.3168,1513.4478,14.1110},
{-668.0714,1842.2285,-38.2069},
{-2684.1921,1933.3193,217.2739},
{496.3631,778.8478,-21.5911},
{-330.8263,2222.5505,42.4896},
{-1963.2415,143.5172,27.6875},
{824.1680,-1363.3478,-0.5078},
{1762.2561,-1943.5354,13.5699},
{2717.5552,-2398.4080,13.6328},
{1448.3351,-2287.1401,13.5469},
{-217.2173,979.2863,19.5009},
{-82.4109,-1137.5580,1.0781},
{-2794.4087,1190.4351,20.2734},
{-1707.5551,1348.2598,7.1797},
{-1412.9916,-297.7442,14.1484},
{1674.2325,1447.9995,10.7831},
{2127.5164,2364.0488,10.8203},
{2183.7351,1115.7953,12.6484},
{1106.6486,1600.1637,12.5469},
{2793.2886,-1719.8452,11.8438},
{-2023.1874,-481.4264,38.7344}
}; - this is the mistake line

what is the mistake?


Re: [HELP] some error - ToPhrESH - 14.07.2010

try adding a "," at the end of {-2023.1874,-481.4264,38.7344}. But, I think that might be wrong.


Re: [HELP] some error - ikey07 - 14.07.2010

pawn Код:
new Float:PropertyLocations[MAX_PROPERTIES][23][3] = {
{2074.0938,1911.5242,14.0569},
{2181.8872,1285.7103,42.9215},
{1911.3168,1513.4478,14.1110},
{-668.0714,1842.2285,-38.2069},
{-2684.1921,1933.3193,217.2739},
{496.3631,778.8478,-21.5911},
{-330.8263,2222.5505,42.4896},
{-1963.2415,143.5172,27.6875},
{824.1680,-1363.3478,-0.5078},
{1762.2561,-1943.5354,13.5699},
{2717.5552,-2398.4080,13.6328},
{1448.3351,-2287.1401,13.5469},
{-217.2173,979.2863,19.5009},
{-82.4109,-1137.5580,1.0781},
{-2794.4087,1190.4351,20.2734},
{-1707.5551,1348.2598,7.1797},
{-1412.9916,-297.7442,14.1484},
{1674.2325,1447.9995,10.7831},
{2127.5164,2364.0488,10.8203},
{2183.7351,1115.7953,12.6484},
{1106.6486,1600.1637,12.5469},
{2793.2886,-1719.8452,11.8438},
{-2023.1874,-481.4264,38.7344}
};



Re: [HELP] some error - borisblat - 14.07.2010

Quote:
Originally Posted by ikey07
Посмотреть сообщение
pawn Код:
new Float:PropertyLocations[MAX_PROPERTIES][23][3] = {
{2074.0938,1911.5242,14.0569},
{2181.8872,1285.7103,42.9215},
{1911.3168,1513.4478,14.1110},
{-668.0714,1842.2285,-38.2069},
{-2684.1921,1933.3193,217.2739},
{496.3631,778.8478,-21.5911},
{-330.8263,2222.5505,42.4896},
{-1963.2415,143.5172,27.6875},
{824.1680,-1363.3478,-0.5078},
{1762.2561,-1943.5354,13.5699},
{2717.5552,-2398.4080,13.6328},
{1448.3351,-2287.1401,13.5469},
{-217.2173,979.2863,19.5009},
{-82.4109,-1137.5580,1.0781},
{-2794.4087,1190.4351,20.2734},
{-1707.5551,1348.2598,7.1797},
{-1412.9916,-297.7442,14.1484},
{1674.2325,1447.9995,10.7831},
{2127.5164,2364.0488,10.8203},
{2183.7351,1115.7953,12.6484},
{1106.6486,1600.1637,12.5469},
{2793.2886,-1719.8452,11.8438},
{-2023.1874,-481.4264,38.7344}
};
C:\Users\קוסטה\המשחקים שלי\GTA San Andreas\GTA San Andreas\gamemodes\WAR.pwn(197) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\קוסטה\המשחקים שלי\GTA San Andreas\GTA San Andreas\gamemodes\WAR.pwn(282) : error 035: argument type mismatch (argument 3)
C:\Users\קוסטה\המשחקים שלי\GTA San Andreas\GTA San Andreas\gamemodes\WAR.pwn(1027) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.




Re: [HELP] some error - Hiddos - 14.07.2010

Facepalm.

pawn Код:
new Float:PropertyLocations[][3] = {
{}, // codes here
};



Re: [HELP] some error - borisblat - 14.07.2010

well i got it fixed,
thanks anyways


Re: [HELP] some error - ikey07 - 14.07.2010

Than check MAX_PROPERTIES if its same size(count) as you have corrds added