C:\XX\XX\XX\XX.pwn(117) : error 052: multi-dimensional arrays must be fully initialized
new TeamInfo[ MAX_TEAMS ][ teaminfo ]= {
// LS teams
{ "Aztecas", AZTECA_COLOR, 0, 0, 0, 0, 0},
{ "Vagos", VAGOS_COLOR, 0, 0, 0, 0, 0},
{ "Ballas", BALLA_COLOR, 0, 0, 0, 0, 0},
{ "Grove", GROVE_COLOR, 0, 0, 0, 0, 0},
{ "Hoodlums", HOODLUM_COLOR, 0, 0, 0, 0, 0},
{ "Cops", COP_COLOR, 0, 0, 0, 0, 0}
}; //this is the line 117
can some one help me with this error tried already everything but havent found anything
this is the whole error PHP код:
PHP код:
|
( "Aztecas", AZTECA_COLOR, 0, 0, 0, 0, 0),
( "Vagos", VAGOS_COLOR, 0, 0, 0, 0, 0),
( "Ballas", BALLA_COLOR, 0, 0, 0, 0, 0),
( "Grove", GROVE_COLOR, 0, 0, 0, 0, 0),
( "Hoodlums", HOODLUM_COLOR, 0, 0, 0, 0, 0),
( "Cops", COP_COLOR, 0, 0, 0, 0, 0)
new TeamInfo[ MAX_TEAMS ][ teaminfo ]= {
( "Aztecas", AZTECA_COLOR, 0, 0, 0, 0, 0),
( "Vagos", VAGOS_COLOR, 0, 0, 0, 0, 0),
( "Ballas", BALLA_COLOR, 0, 0, 0, 0, 0),
( "Grove", GROVE_COLOR, 0, 0, 0, 0, 0),
( "Hoodlums", HOODLUM_COLOR, 0, 0, 0, 0, 0),
( "Cops", COP_COLOR, 0, 0, 0, 0, 0)
};
C:\XX\XX\XX\XX.pwn(117) : error 052: multi-dimensional arrays must be fully initialized
i did it like this but again the same error
PHP код:
PHP код:
|
new TeamInfo[ MAX_TEAMS ][ teaminfo ]= {
C:\XX\XX\XX\XX.pwn(110) : error 001: expected token: ";", but found "{"
C:\XX\XX\XX\XX.pwn(117) : error 010: invalid function or declaration
new TeamInfo[ MAX_TEAMS ][ teaminfo ] { //line 110
( "Aztecas", AZTECA_COLOR, 0, 0, 0, 0, 0),
( "Vagos", VAGOS_COLOR, 0, 0, 0, 0, 0),
( "Ballas", BALLA_COLOR, 0, 0, 0, 0, 0),
( "Grove", GROVE_COLOR, 0, 0, 0, 0, 0),
( "Hoodlums", HOODLUM_COLOR, 0, 0, 0, 0, 0),
( "Cops", COP_COLOR, 0, 0, 0, 0, 0)
}; //117
now i get two errors
PHP код:
PHP код:
|
new TeamInfo[ MAX_TEAMS ][ teaminfo ] = {
AZTECA_COLOR,VAGOS_COLOR, BALLA_COLOR,GROVE_COLOR, HOODLUM_COLOR,COP_COLOR
}; //117
MAX_TEAMS should be defined as 6. And keep it as you had it in your first post.
@Brandondw8: Curly brackets and Equals sign are needed. |