SA-MP Forums Archive
[Ajuda] error 052: multi-dimensional arrays must be fully initialized - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] error 052: multi-dimensional arrays must be fully initialized (/showthread.php?tid=502062)



error 052: multi-dimensional arrays must be fully initialized - BaianoIn - 22.03.2014

pawn Код:
C:\Users\User\Documents\Leonardo R\New server noiz dois\gm by master_pawnaaaaaaa\gm by master_pawn\Brasil Gold Revolution RP\gamemodes\BGR.pwn(362) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
new OrgsNames[MAX_ORGS][26] = {
{"Nenhuma"},
{"Policia Militar"},
{"Policia Federal"},
{"Forзas Armadas"},
{"Forзa aerea"},
{"Front Yard Ballas"},
{"Groove Street"},
{"Prefeito"},
{"Hitmans"},
{"San News"},
{"Lowriders"},
{"San Fierro Riffas"},
{"Los Santos Vagos"},
{"Asphalt King's"},
{"PRF"},
{"Varrios Los Aztecas"},
{"Mafia Triads"},
{"Drifters"},
{"Comando Vermelho"},
{"PCC"},
{"SWAT"},
{"Al'Qaeda"},
{"Taxistas"},
{"Bombeiros"}
};



Re: error 052: multi-dimensional arrays must be fully initialized - Nill.Oliveira - 22.03.2014

MAX_ORGS, estб definido para qual valor ?


Re: error 052: multi-dimensional arrays must be fully initialized - BaianoIn - 22.03.2014

#define MAX_ORGS 25


Re: error 052: multi-dimensional arrays must be fully initialized - Nill.Oliveira - 22.03.2014

pawn Код:
#define MAX_ORGS 23



Re: error 052: multi-dimensional arrays must be fully initialized - BaianoIn - 22.03.2014

@Foi vlw


Re: error 052: multi-dimensional arrays must be fully initialized - Nill.Oliveira - 22.03.2014

O problema multi-dimensional arrays must be fully initialized, й pelo excesso.
So tem 23 Linhas, e estб definido MAX_ORGS para 25, por isso ocorre o error.