Errors in Compiling
#1

Hey,I am making game mode : [MTW] Los Antos TurfWars 1.4 . When I compile in pawn I geting these errors
Код:
C:\Users\bendra\Desktop\GnagZones\gamemodes\TurfWarsMTW1.4.pwn(95) : error 018: initialization data exceeds declared size
C:\Users\bendra\Desktop\GnagZones\gamemodes\TurfWarsMTW1.4.pwn(238) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\bendra\Desktop\GnagZones\gamemodes\TurfWarsMTW1.4.pwn(244) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\bendra\Desktop\GnagZones\gamemodes\TurfWarsMTW1.4.pwn(250) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\bendra\Desktop\GnagZones\gamemodes\TurfWarsMTW1.4.pwn(256) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\bendra\Desktop\GnagZones\gamemodes\TurfWarsMTW1.4.pwn(262) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\bendra\Desktop\GnagZones\gamemodes\TurfWarsMTW1.4.pwn(268) : error 052: multi-dimensional arrays must be fully initialized
Error with initialization data exceeds declared size,part lines :
Код:
{ "Police.",   COLOR_BLUE,    0, 0, 0, 0, 0},
{ "Aztecas",  COLOR_LIGHTBLUE,  0, 0, 0, 0, 0},
{ "Bikers",     COLOR_RED,     0, 0, 0, 0, 0},
{ "FastFood",   COLOR_ORANGE,   0, 0, 0, 0, 0},
{ "Army",  COLOR_GREY,  0, 0, 0, 0, 0},
};
//=================================== TURF STUFF ===============================
enum tinfo
{
	 turfID,
 	 turfName[ 40 ],
	 Float:zMinX,
	 Float:zMinY,
	 Float:zMaxX,
	 Float:zMaxY,
	 TurfColor,
	 TurfOwner,
	 TurfAttacker,
	 TurfKills,
Errors with multi-dimensional arrays must be fully initialized:
Код:
//=========================== SPAWNPOINTS ======================================
new Float:gGroveSP[ 5 ][ 4 ] = {
{2486.3970, -1645.1057, 14.0772, 179.9111},
{2522.4792, -1678.8976, 15.4970,  84.5245},
{2459.4883, -1690.7766, 13.5447,   4.4374}
};

new Float:gBallasSP[ 5 ][ 4 ] = {
{1999.8577, -1114.6553, 27.1250, 182.0473},
{2022.9449, -1120.9398, 26.4210, 176.7813},
{2045.8439, -1115.7263, 26.3617, 273.3338}
};

new Float:gVagosSP[ 5 ][ 4 ] = {
{2626.2966, -1112.7968, 67.8459, 268.0490},
{2628.5859, -1068.0347, 69.6129, 270.7647},
{2576.2104, -1070.5781, 69.8322,  90.3136}
};

new Float:gAztecasSP[ 5 ][ 4 ] = {
{1782.4652, -2125.8149, 14.0679,   2.1458},
{1802.0015, -2099.5906, 14.0210, 178.8617},
{1733.7253, -2098.3542, 14.0366, 179.5071}
};

new Float:gCopsSP[ 5 ][ 4 ] = {
{1580.5128, -1634.4861, 13.5617, 130.4118},
{1568.6759, -1690.4570,  5.8906, 176.6791},
{1525.1227, -1678.2502,  5.8906, 273.1760}
};

new Float:gBikersSP[ 5 ][ 4 ] = {
{865.1617, -1634.7625, 14.9297, 176.2746},
{851.1503, -1688.4281, 14.9478, 270.6273},
{892.3436, -1638.1572, 14.9494, 179.3978}
};
i found some post about these errors,but there nobody explains what to do.
Please help me,I am just starter. XD
Reply
#2

[ 5 ][ 4 ] That isnt right... they are only 3 big
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)