[ajuda] error 018 e error 010
#1

(1140) : error 018: initialization data exceeds declared size
(1147) : error 010: invalid function or declaration~

Me ajudem a resolver esse erro por favor*

pawn Код:
new JoinPed[52][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{258},//LA_COSA_NOSTRA
{105},//Grove
{269},//Grove
{195},//Grove
{271},//Grove
{106},//Grove
{107},//Grove
{127},
{126},
{125},
{124},
{113},
{111},
{98},
{120},//YAKUZA
{121},
{122},
{123},
{169},
{186},
{228},
{127},//HITMANS
{165},
{186},
{93},
{141},
{148},//NEWS_REPORTERS
{188},
{187},// <<< linha 1140
{255},//TAXI_CAB_COMPANY
{253},
{59},//DRIVING/FLYING_SCHOOL
{60},//DRIVING/FLYING_SCHOOL
{76},//DRIVING/FLYING_SCHOOL
{150}//DRIVING/FLYING_SCHOOL
}; <<<< linha 1147
Reply
#2

Tenta :
pawn Код:
new JoinPed[58][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{258},//LA_COSA_NOSTRA
{105},//Grove
{269},//Grove
{195},//Grove
{271},//Grove
{106},//Grove
{107},//Grove
{127},
{126},
{125},
{124},
{113},
{111},
{98},
{120},//YAKUZA
{121},
{122},
{123},
{169},
{186},
{228},
{127},//HITMANS
{165},
{186},
{93},
{141},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{59},//DRIVING/FLYING_SCHOOL
{60},//DRIVING/FLYING_SCHOOL
{76},//DRIVING/FLYING_SCHOOL
{150}//DRIVING/FLYING_SCHOOL
};
Reply
#3

Problema resolvido obrigado*
Reply
#4

Agr tem um problema no login box olhem

C:\Users\Lewis\Documents\Programas Bruno\samp03csvr_win32\filterscripts\Registro.pwn( 121) : warning 217: loose indentation
C:\Users\Lewis\Documents\Programas Bruno\samp03csvr_win32\filterscripts\Registro.pwn( 137) : warning 217: loose indentation

sei que й a posiзгo mais ja tentei todo tipo de posiзгo, por favor me ajudem**


pawn Код:
if(dialogid == WELCOME1)
        {
                if(response)
        {
   ShowPlayerDialog(playerid,WELCOME1,DIALOG_STYLE_MSGBOX,"Erro","Sua conta nao й registrada!","Cancelar","Registrar");
        }
        else//<< linha 121
        {
    TogglePlayerSpectating(playerid, 1);
    IsLogged[playerid] = 0;

    new file[128], string[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(file,sizeof(file),"/Contas/%s.ini",name);
    if(!fexist(file))
    {
        format(string, sizeof string, "Bem Vindo! %s! \nSua conta nao esta registrada! \n\nPor favor, registre-se!!", name);
        ShowPlayerDialog(playerid, Register, DIALOG_STYLE_MSGBOX, "Conta", string, "Registrar", "Cancelar.");
    }
}
 }
    if(dialogid == Register)//<< linha 137
    {
        if(response)
        {
            new file[128];
            new string[128];
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            if(strlen(inputtext) == 0)
            {
                format(string, sizeof string, "Por favor, coloque sua senha! \n\nBem Vindo! %s! \nSua conta nao esta registrada! \n\nPor favor registre-se!", name);
                ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Conta", string, "Registrar!", "Cancelar.");
                return 0;
            }
            format(file,sizeof(file),"/Contas/%s.ini",name);
            if(!fexist(file))
            {
                dini_Create(file);
                dini_IntSet(file,"Password", udb_hash(inputtext));
                dini_IntSet(file,"Score", GetPlayerScore(playerid));
                dini_IntSet(file,"Money", GetPlayerMoney(playerid));
                dini_IntSet(file,"Deaths", PlayerInfo[playerid][Deaths]);
                dini_IntSet(file,"Kills", PlayerInfo[playerid][Kills]);
                dini_IntSet(file,"ServerTime", PlayerInfo[playerid][ServerTime]);
                format(string, sizeof string, "Conta registrada! \n\nBem Vindo! %s! \nSua conta esta registrada! \n\nPor favor Logue!", name);
                ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, "Conta", string, "Logar!", "Cancelar.");
                PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
                GetPlayerName(playerid, name, sizeof(name));
                printf("%s Registrou a conta!!", name);
        }
    }
}
Reply
#5

Vo ti dar uma dica...Loose Sao Apenas Falta de Espaзoes ou Espaзos em excesso...https://sampforum.blast.hk/showthread.php?tid=170773
Reply
#6

Problema resolvido badio12.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)