SA-MP Forums Archive
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)
+--- Thread: Error (/showthread.php?tid=400195)



Error - WiseRice - 17.12.2012

{280},//Lebanese Forces
{285},
{143},//La Vice
{156},
{176},
{177},
{184}
};

error 052: multi-dimensional arrays must be fully initialized

What i do?


Re: Error - Faisal_khan - 17.12.2012

Paste the whole array.


Re: Error - WiseRice - 17.12.2012

Removed


Re: Error - WiseRice - 17.12.2012

what u mean?


Re: Error - Konstantinos - 17.12.2012

Change to
pawn Код:
new JoinPed[65][] = {



Re: Error - WiseRice - 17.12.2012

Quote:

new JoinPed[69][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{292},//SURENOS
{114},
{115},
{175},
{174},
{116},
{173},
{176},
{124},//Signatra
{125},
{126},
{111},
{123},
{186},
{228},
{249},//HITMANS
{68},
{72},
{121},
{295},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{153},//DRIVING/FLYING_SCHOOL
{156},//DRIVING/FLYING_SCHOOL
{206},//DRIVING/FLYING_SCHOOL
{221},//DRIVING/FLYING_SCHOOL
{19},//Signatra
{22},
{22},
{144},
{170},
{180},
{280},//Lebanese Forces
{285},
{143},//La Vice
{156},
{176},
{177},
{184}
};

<<<Line 3206

Quote:

Then It Makes An Error: C:\Users\user\Desktop\iRealLife\gamemodes\larp.pwn (3206) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.




Re: Error - Konstantinos - 17.12.2012

Try what I posted above and can you please show us the line 3206


Re: Error - WiseRice - 17.12.2012

Thanks Man!


Re: Error - LarzI - 17.12.2012

Yes that will work, but I don't get why you use a 2-dimensional array when you clearly only use one cell.