[Ajuda] Erro na Variavel
#1

Alguem poderia me ajudar com esse erro ?

C:\Users\USER\Desktop\SwaaT\gamemodes\Teste.pwn(34 ) : error 033: array must be indexed (variable "nomedoplayer")
C:\Users\USER\Desktop\SwaaT\gamemodes\Teste.pwn(38 ) : error 033: array must be indexed (variable "nomedoplayer")

pawn Код:
new caminho[56];
    if(PlayerInfo[playerid][Lider] > 0)
    {
        if(PlayerInfo[playerid][Lider] > 0)
        {
            format(caminho, sizeof(caminho), "InfoOrg/Org%d.ini", PlayerInfo[playerid][Lider]);
            if(!DOF2_FileExists(caminho))
            {
                DOF2_CreateFile(caminho);
                new nomedoplayer[MAX_PLAYER_NAME];
                GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
                PlayerOrgInfo[playerid][VagaID] = 0;

                if(DOF2_GetInt(caminho, "Vaga1") == nomedoplayer)
                {
                    PlayerOrgInfo[playerid][VagaID] = 1;
                }
                if(DOF2_GetInt(caminho, "Vaga2") == nomedoplayer)
                {
                    PlayerOrgInfo[playerid][VagaID] = 2;
                }
            }
        }
    }
Reply


Messages In This Thread
Erro na Variavel - by SwaaTxTaawS - 25.07.2014, 14:16
Re: Erro na Variavel - by GM_KoDi - 25.07.2014, 14:25
Re: Erro na Variavel - by SwaaTxTaawS - 25.07.2014, 14:46
Re: Erro na Variavel - by .FuneraL. - 25.07.2014, 14:53
Re: Erro na Variavel - by SwaaTxTaawS - 25.07.2014, 14:56
Re: Erro na Variavel - by .FuneraL. - 25.07.2014, 14:58
Re: Erro na Variavel - by GM_KoDi - 25.07.2014, 15:02
Re: Erro na Variavel - by PT - 25.07.2014, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)