SA-MP Forums Archive
error 052: multi-dimensional arrays must be fully initialized - 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)
+--- Thread: error 052: multi-dimensional arrays must be fully initialized (/showthread.php?tid=376205)



error 052: multi-dimensional arrays must be fully initialized - newbienoob - 09.09.2012

wat's wrong in here?
pawn Код:
new Float:JpSpawns[4][4] =
{
    {-775.6139,2761.6914,47.2002,178.5629},
    {-842.8282,2752.3252,45.8516,9.0480},
    {-911.5106,2686.1985,42.3703,24.1116}
};
Код:
error 052: multi-dimensional arrays must be fully initialized
EDIT: Fixed! I just need to change this
pawn Код:
new Float:JpSpawns[4][4] =
to this
pawn Код:
new Float:JpSpawns[][4] =



Re: error 052: multi-dimensional arrays must be fully initialized - [MM]RoXoR[FS] - 09.09.2012

pawn Код:
new Float:JpSpawns[][] =
{
    {-775.6139,2761.6914,47.2002,178.5629},
    {-842.8282,2752.3252,45.8516,9.0480},
    {-911.5106,2686.1985,42.3703,24.1116}
};