Ayuda este error
#1

pawn Код:
(32432) : error 033: array must be indexed (variable "fINFO")
(32434) : warning 219: local variable "fINFO" shadows a variable at a preceding level
(32435) : error 033: array must be indexed (variable "fINFO")
(32435) : error 033: array must be indexed (variable "fINFO")
(32445) : error 017: undefined symbol "pFLeader"
(32446) : error 017: undefined symbol "pFRank"
Este es el comando:

pawn Код:
CMD:fmiembros(playerid, params[])
{
    new fmember = Info[playerid][pFMember];
    new fleader = Info[playerid][fINFO];
    new fteamnumber;
    new fINFO[256];
    if (Info[playerid][fINFO] != 0) fteamnumber = Info[playerid][fINFO];
    else if (Info[playerid][pFMember] != 0) fteamnumber = Info[playerid][pFMember];
    if(fmember > 0 || fleader > 0)
    {
        SendClientMessageEx(playerid, COLOR_GENERAL, "Familiares Conectados:");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            new string[32];
            if (IsPlayerConnected(i))
            {
                if (Info[i][pFLeader] == fteamnumber) format(string, sizeof(string), "%s (Lнder)",GetPlayerNameEx(i));
                else if (Info[i][pFMember] == fteamnumber) format(string, sizeof(string), "%s, Rango: %d.",GetPlayerNameEx(i), Info[i][pFRank]);
                if(strlen(string) > 0) SendClientMessageEx(playerid, COLOR_GRAD2, string);
            }
        }
    }
    else SendClientMessageEx(playerid, COLOR_GRAD2, "No perteneces a ninguna facciуn.");
    return 1;
}
Reply
#2

Pruebe asi seсor Daniel.

pawn Код:
CMD:fmiembros(playerid, params[])
{
    new fmember;
    fmember = Info[playerid][pFMember];
    new fleader;
    fleader = Info[playerid][fINFO];
    new fteamnumber;
    //new fINFO[256]; - No puedes redefinir una variable utilizada en un enum.
    if (Info[playerid][fINFO] != 0) fteamnumber = Info[playerid][fINFO];
    else if (Info[playerid][pFMember] != 0) fteamnumber = Info[playerid][pFMember];
    if(fmember > 0 || fleader > 0)
    {
        SendClientMessageEx(playerid, COLOR_GENERAL, "Familiares Conectados:");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            new string[32];
            if (IsPlayerConnected(i))
            {
                if (Info[i][pFLeader] == fteamnumber) format(string, sizeof(string), "%s (Lнder)",GetPlayerNameEx(i));
                else if (Info[i][pFMember] == fteamnumber) format(string, sizeof(string), "%s, Rango: %d.",GetPlayerNameEx(i), Info[i][pFRank]);
                if(strlen(string) > 0) SendClientMessageEx(playerid, COLOR_GRAD2, string);
            }
        }
    }
    else SendClientMessageEx(playerid, COLOR_GRAD2, "No perteneces a ninguna facciуn.");
    return 1;
}
Un saludo.
Reply
#3

me sigue botandoeste error

pawn Код:
error 033: array must be indexed (variable "fINFO")
en esta linea

pawn Код:
if (Info[playerid][fINFO] != 0) fteamnumber = Info[playerid][fINFO];
Reply
#4

muйstrame la variable "fINFO"
Reply
#5

pawn Код:
enum fInfo
{
    FamilyTaken,
    FamilyName[42],
    FamilyMOTD[65],
    FamilyColor,
    FamilyTurfTokens,
    FamilyLeader[MAX_PLAYER_NAME],
    FamilyMembers,
    Float:FamilySpawn[4],
    FamilyInterior,
    FamilyCash,
    FamilyBank,
    FamilyMats,
    FamilyPot,
    FamilyCrack,
    Float:FamilySafe[3],
    FamilyUSafe,
    FamilyRank1[20],
    FamilyRank2[20],
    FamilyRank3[20],
    FamilyRank4[20],
    FamilyRank5[20],
    FamilyRank6[20],
    FamilyPickup,
    FamilyMaxSkins,
    FamilySkins[8],
    Float: FamilyEntrance[4],
    Float: FamilyExit[4],
    FamilyEntrancePickup,
    FamilyExitPickup,
    Text3D:FamilyEntranceText,
    Text3D:FamilyExitText,
    FamilyCustomMap,
    FamilyVirtualWorld,
    FamilyResetSpawns,
    FamilyGuns[10],
};
new fINFO[MAX_FAMILY][fInfo];
Reply
#6

Lag perdon
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)