[Ajuda] Erros Inventario
#5

Resolvi um pouco dos erros.
uma stock tava escrito tock

pawn Код:
if(dialogid == D_LOGARUPP)
    {
        if(response)
        {
            if(strlen(inputtext))
            {
                if(strlen(inputtext) == dini_Int(gFile, "Senha"))
                {
                    SendClientMessage(playerid, COLOR_SERVER, "| INFO | Logado(a) com sucesso!") && GameTextForPlayer(playerid, "~y~LOGADO COM SUCESSO!", 1000, 5);
                    logado[playerid] = true;
                    CarregarFileNome(playerid);
                    CarregarIventario(playerid);
                    return 1;
                }
                else // 3145
                {
                    Tentativas[playerid] ++;
                    if(Tentativas[playerid] == 5) //3148
                    {
                        Tentativas[playerid] = 0;
                        SendClientMessage(playerid, COLOR_ERRO, "(Ч) Vocк errou 5 vezes a senha e foi kickado !") && GameTextForPlayer(playerid, "~r~KICKADO(A)!", 1000, 5);
                        Kick(playerid);
                        return 1; // 3153
                    }
                    format(gStr, sizeof(gStr), "Ч Senha Errada!\n\n{FFFFFF}Usuбrio: %s\n\n{FFFFFF}Digite sua senha:", PlayerName(playerid));
                    ShowPlayerDialog(playerid, D_LOGARUPP, DIALOG_STYLE_INPUT, "Login", gStr, "Logar", "Sair");
                    SendClientMessage(playerid, COLOR_SERVER, "{FF0000}Ч Senha Errada!");
                    return 1; // 3158
                }
            }
        }
        else //3162
        {
            SendClientMessage(playerid, COLOR_SERVER, "| INFO | Login cancelado!") && GameTextForPlayer(playerid, "~r~LOGIN CANCELADO!", 1000, 5);
            return 1; //3165
        }
    }
    return 1; //3168
}
pawn Код:
stock SalvarIventario(playerid)
{
        new Nome[25];
        GetPlayerName(playerid,Nome,sizeof(Nome));
        new Arquivo[41]="Inventarios/.ini";
        strins(Arquivo, Nome, 12, 25);
        if(!dini_FileExists(Arquivo)) //3367
        {
                dini_CreateFile(Arquivo); //3369
        }
        new str[12];
        for(new i = 0; i != 8; ++i)
        {
                format(str, sizeof(str), "Arma inv %d", i);
                dini_SetInt(Arquivo, str, InventarioArma[i][playerid]); //3375
                format(str, sizeof(str), "Ammo inv %d", i);
                dini_SetInt(Arquivo, str, InventarioAmmo[i][playerid]); //3377
        }
        dini_SaveFile(); //3379
        return 1;
}
pawn Код:
forward ApagarContagem();
public ApagarContagem()
{
    TextDrawHideForAll(TextContagem);
    TextDrawHideForAll(TextcNumero);
    cNaTela = false;
    cNumero = 5;
    return 1;
} //3572
os outros erros sгo nessas linhas.
Reply


Messages In This Thread
Erros Inventario - by zGuigui2068 - 11.04.2016, 19:22
Re: Erros Inventario - by F1N4L - 11.04.2016, 19:26
Re: Erros Inventario - by zGuigui2068 - 11.04.2016, 19:30
Re: Erros Inventario - by F1N4L - 11.04.2016, 19:33
Re: Erros Inventario - by zGuigui2068 - 11.04.2016, 19:40
Re: Erros Inventario - by zGuigui2068 - 11.04.2016, 19:44
Re: Erros Inventario - by F1N4L - 11.04.2016, 19:45
Re: Erros Inventario - by zGuigui2068 - 11.04.2016, 19:54
Re: Erros Inventario - by F1N4L - 11.04.2016, 20:05
Re: Erros Inventario - by zGuigui2068 - 11.04.2016, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)