[Need Help] Error
#10

pawn Код:
#define MAX_TEAMS  5

Test FilterScript:
pawn Код:
#include <a_samp>

#define MAX_TEAMS  5
#define AZTECAS_COLOR   0x0066FFAA
#define VAGOS_COLOR     0x0066FFAA
#define BALLAS_COLOR    0x0066FFAA
#define GROVE_COLOR     0x0066FFAA
#define COPS_COLOR      0x0066FFAA

enum teaminfo
{
    blabla[32],
    teamcolor,
    num1,
    num2,
    num3,
    num4,
    num5,
};

new TeamInfo[MAX_TEAMS][teaminfo] =
{
    { "Varrio Los Aztecas", AZTECAS_COLOR, 0, 0, 0, 0, 0}, // Team 1
    { "Los Santos Vagos",  VAGOS_COLOR,  0, 0, 0, 0, 0}, // Team 2
    { "The Ballas Family",  BALLAS_COLOR,  0, 0, 0, 0, 0}, // Team 3
    { "Grove Street Familie",  GROVE_COLOR,  0, 0, 0, 0, 0}, // Team 4
    { "Los Santos Police Department",   COPS_COLOR,   0, 0, 0, 0, 0} // Team 5
};

public OnFilterScriptInit()
{
    print("\n");
    for(new i; i < sizeof TeamInfo; i++)
    {
        printf("    %s | %x | %d | %d | %d | %d | %d |", TeamInfo[i][blabla], TeamInfo[i][teamcolor], TeamInfo[i][num1], TeamInfo[i][num2], TeamInfo[i][num3], TeamInfo[i][num4], TeamInfo[i][num5]);
    }
    print("\n");
    return 1;
}
pawn Код:
#define MAX_TEAMS  6

// : error 052: multi-dimensional arrays must be fully initialized
Reply


Messages In This Thread
[Need Help] Error - by geerdinho8 - 28.02.2010, 16:51
Re: [Need Help] Error - by woot - 28.02.2010, 16:52
Re: [Need Help] Error - by geerdinho8 - 28.02.2010, 16:53
Re: [Need Help] Error - by geerdinho8 - 28.02.2010, 18:10
Re: [Need Help] Error - by Torran - 28.02.2010, 18:12
Re: [Need Help] Error - by geerdinho8 - 28.02.2010, 18:14
Re: [Need Help] Error - by Torran - 28.02.2010, 18:15
Re: [Need Help] Error - by geerdinho8 - 28.02.2010, 18:34
Re: [Need Help] Error - by geerdinho8 - 28.02.2010, 18:40
Re: [Need Help] Error - by smeti - 28.02.2010, 18:41

Forum Jump:


Users browsing this thread: 2 Guest(s)