Help This Command
#1

Well look'm Spanish area but could not fix these mistakes and maybe you could help me?

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"
This is the Command:

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

Mistake is here I believe: new fleader = Info[playerid][fINFO]; it should be pLeader instead isnt?
Reply
#3

I mean that if I have it set before?
Reply
#4

Please Help.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)