[Ajuda] INCLUDE KEYPAD
#1

Pra quem nгo sabe a include keypad foi usa na [FS] cartгo de credito porem a fs de cartгo de credito que eu utilizo usa a #include keypad caso alguem ainda tenha a INCLUDE keypad pode me passar download aqui
eu ja procurei no forum nгo achei procurei no ****** nгo achei agora to pedindo pra vocкs Vlw

Obrigado a quem mandar ai em hehe

FILTERSCRIPT
pawn Код:
#include a_samp
#include DOF2
#include ZCMD
#include keypad

new PlayerText:MasterCard0[MAX_PLAYERS];
new PlayerText:MasterCard1[MAX_PLAYERS];
new PlayerText:MasterCard2[MAX_PLAYERS];
new PlayerText:MasterCard3[MAX_PLAYERS];
new PlayerText:MasterCard4[MAX_PLAYERS];
new PlayerText:MasterCard5[MAX_PLAYERS];
new PlayerText:MasterCard6[MAX_PLAYERS];
new PlayerText:MasterCard7[MAX_PLAYERS];
new PlayerText:MasterCard8[MAX_PLAYERS];

#define Desparcelando 1 // Ajute o tempo em MINUTOS --- 1 = 1 Min;

new VariTemp[MAX_PLAYERS];

public OnFilterScriptInit()
{
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    print("[INFO] >. Carregado .<");


    SetTimer("DesParcelando", 60000*Desparcelando, true);
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#define KeyPad_FimBanco 20

#pragma tabsize 0

enum EnumCartao{
    Cartao01,
    TemCartao01,
    Debito01,
    Credito01,
    Parcelando01,
    VezesParcelando01,
    SerieCartao1_01,
    SerieCartao2_01,
    SerieCartao3_01,
    SerieCartao4_01,
    Titular01,
    SenhaCartao01,
    ValorTotal01,
    //
    Cartao02,
    TemCartao02,
    Debito02,
    Credito02,
    Parcelando02,
    VezesParcelado02,
    SerieCartao1_02,
    SerieCartao2_02,
    SerieCartao3_02,
    SerieCartao4_02,
    Titular02,
    SenhaCartao02,
    ValorTotal02,
    //
    Cartao03,
    TemCartao03,
    Debito03,
    Credito03,
    Parcelando03,
    VezesParcelado03,
    SerieCartao1_03,
    SerieCartao2_03,
    SerieCartao3_03,
    SerieCartao4_03,
    Titular03,
    SenhaCartao03,
    ValorTotal03,
    //
    Cartao04,
    TemCartao04,
    Debito04,
    Credito04,
    Parcelando04,
    VezesParcelado04,
    SerieCartao1_04,
    SerieCartao2_04,
    SerieCartao3_04,
    SerieCartao4_04,
    Titular04,
    SenhaCartao04,
    ValorTotal04
}; new SystemCard[MAX_PLAYERS][EnumCartao];

#define PrecoCelu 1250 // Preзo do << Item Exemplo >> do comando /compraralgo que serve de Exemplo para uma fatura de cartгo.

new _Str[128],
    VezesParcelado[MAX_PLAYERS],
    CartaoOption[MAX_PLAYERS],
    SenhaBanco[MAX_PLAYERS] // Variavel que armazena o valor em Numeros do inputtext [ Ao Cadastrar Senha! ];
;

// DESABILITADO! >>
#define DIALOGUSAR 1 /* Manual:
                        0 ~ Mostra uma MSG no Chat que a parcela do cartгo foi paga.
                        1 ~ Mostra um Dialog ao jogador explicando que a parcela do cartгo foi paga.
                        */

public OnPlayerConnect(playerid){
    format(_Str, sizeof(_Str), "Cartao de Credito/%s.ini", ObterNome(playerid));
    if(!DOF2_FileExists(_Str)){
        DOF2_CreateFile(_Str);

        DOF2_SetString(_Str, "Cartao01", "Nenhum");
        DOF2_SetInt(_Str, "TemCartao01", 0);
        DOF2_SetInt(_Str, "Debito01", 0);
        DOF2_SetInt(_Str, "Credito01", 0);
        DOF2_SetInt(_Str, "Parcelando01", 0);
        DOF2_SetInt(_Str, "VezesParcelando01", 0);
        DOF2_SetInt(_Str, "SerieCartao1_01", 0);
        DOF2_SetInt(_Str, "SerieCartao2_01", 0);
        DOF2_SetInt(_Str, "SerieCartao3_01", 0);
        DOF2_SetInt(_Str, "SerieCartao4_01", 0);
        DOF2_SetString(_Str, "Titular01", "Nгo Registrado");
        DOF2_SetInt(_Str, "SenhaCartao01", 0);
        DOF2_SetInt(_Str, "ValorTotal01", 0);

        DOF2_SetString(_Str, "------------------", "---------------------------------------------------"); // Separa o Cartгo de Outro. !!

        DOF2_SetString(_Str, "Cartao02", "Nenhum");
        DOF2_SetInt(_Str, "TemCartao02", 0);
        DOF2_SetInt(_Str, "Debito02", 0);
        DOF2_SetInt(_Str, "Credito02", 0);
        DOF2_SetInt(_Str, "Parcelado02", 0);
        DOF2_SetInt(_Str, "VezesParcelado02", 0);
        DOF2_SetInt(_Str, "SerieCartao1_02", 0);
        DOF2_SetInt(_Str, "SerieCartao2_02", 0);
        DOF2_SetInt(_Str, "SerieCartao3_02", 0);
        DOF2_SetInt(_Str, "SerieCartao4_02", 0);
        DOF2_SetString(_Str, "Titular02", "Nгo Registrado");
        DOF2_SetInt(_Str, "SenhaCartao02", 1);
        DOF2_SetInt(_Str, "ValorTotal02", 0);

        DOF2_SetString(_Str, "-----------------", "---------------------------------------------------"); // Separa o Cartгo de Outro. !!

        DOF2_SetString(_Str, "Cartao03", "Nenhum");
        DOF2_SetInt(_Str, "TemCartao03", 0);
        DOF2_SetInt(_Str, "Debito03", 0);
        DOF2_SetInt(_Str, "Credito03", 0);
        DOF2_SetInt(_Str, "Parcelado03", 0);
        DOF2_SetInt(_Str, "VezesParcelado03", 0);
        DOF2_SetInt(_Str, "SerieCartao1_03", 0);
        DOF2_SetInt(_Str, "SerieCartao2_03", 0);
        DOF2_SetInt(_Str, "SerieCartao3_03", 0);
        DOF2_SetInt(_Str, "SerieCartao4_03", 0);
        DOF2_SetString(_Str, "Titular03", "Nгo Registrado");
        DOF2_SetInt(_Str, "SenhaCartao03", 0);
        DOF2_SetInt(_Str, "ValorTotal03", 0);

        DOF2_SetString(_Str, "----------------", "---------------------------------------------------"); // Separa o Cartгo de Outro. !!

        DOF2_SetString(_Str, "Cartao04", "Nenhum");
        DOF2_SetInt(_Str, "TemCartao04", 0);
        DOF2_SetInt(_Str, "Debito04", 0);
        DOF2_SetInt(_Str, "Credito04", 0);
        DOF2_SetInt(_Str, "Parcelado04", 0);
        DOF2_SetInt(_Str, "VezesParcelado04", 0);
        DOF2_SetInt(_Str, "SerieCartao1_04", 0);
        DOF2_SetInt(_Str, "SerieCartao2_04", 0);
        DOF2_SetInt(_Str, "SerieCartao3_04", 0);
        DOF2_SetInt(_Str, "SerieCartao4_04", 0);
        DOF2_SetString(_Str, "Titular04", "Nгo Registrado");
        DOF2_SetInt(_Str, "SenhaCartao04", 0);
        DOF2_SetInt(_Str, "ValorTotal04", 0);

        DOF2_SaveFile();
    }
    else{
    CarregarCartao(playerid);
    }

    MasterCard0[playerid] = CreatePlayerTextDraw(playerid, 214.000000, 157.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, MasterCard0[playerid], 255);
    PlayerTextDrawFont(playerid, MasterCard0[playerid], 1);
    PlayerTextDrawLetterSize(playerid, MasterCard0[playerid], 0.500000, 11.799999);
    PlayerTextDrawColor(playerid, MasterCard0[playerid], -1);
    PlayerTextDrawSetOutline(playerid, MasterCard0[playerid], 0);
    PlayerTextDrawSetProportional(playerid, MasterCard0[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MasterCard0[playerid], 1);
    PlayerTextDrawUseBox(playerid, MasterCard0[playerid], 1);
    PlayerTextDrawBoxColor(playerid, MasterCard0[playerid], -1094795632);
    PlayerTextDrawTextSize(playerid, MasterCard0[playerid], 409.000000, 11.000000);

    MasterCard1[playerid] = CreatePlayerTextDraw(playerid, 260.000000, 161.000000, "MasterCard.");
    PlayerTextDrawBackgroundColor(playerid, MasterCard1[playerid], 255);
    PlayerTextDrawFont(playerid, MasterCard1[playerid], 1);
    PlayerTextDrawLetterSize(playerid, MasterCard1[playerid], 0.500000, 1.800000);
    PlayerTextDrawColor(playerid, MasterCard1[playerid], 1182970928);
    PlayerTextDrawSetOutline(playerid, MasterCard1[playerid], 0);
    PlayerTextDrawSetProportional(playerid, MasterCard1[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MasterCard1[playerid], 1);

    MasterCard2[playerid] = CreatePlayerTextDraw(playerid, 224.000000, 220.000000, "0000 0000 0000 0000");
    PlayerTextDrawBackgroundColor(playerid, MasterCard2[playerid], 255);
    PlayerTextDrawFont(playerid, MasterCard2[playerid], 1);
    PlayerTextDrawLetterSize(playerid, MasterCard2[playerid], 0.310000, 1.700000);
    PlayerTextDrawColor(playerid, MasterCard2[playerid], 1887473760);
    PlayerTextDrawSetOutline(playerid, MasterCard2[playerid], 0);
    PlayerTextDrawSetProportional(playerid, MasterCard2[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MasterCard2[playerid], 1);

    MasterCard3[playerid] = CreatePlayerTextDraw(playerid, 226.000000, 244.000000, "Gabriel Buttenbender");
    PlayerTextDrawBackgroundColor(playerid, MasterCard3[playerid], 255);
    PlayerTextDrawFont(playerid, MasterCard3[playerid], 1);
    PlayerTextDrawLetterSize(playerid, MasterCard3[playerid], 0.250000, 1.699999);
    PlayerTextDrawColor(playerid, MasterCard3[playerid], -92245249);
    PlayerTextDrawSetOutline(playerid, MasterCard3[playerid], 0);
    PlayerTextDrawSetProportional(playerid, MasterCard3[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MasterCard3[playerid], 1);

    MasterCard4[playerid] = CreatePlayerTextDraw(playerid, 371.000000, 211.000000, "@");
    PlayerTextDrawBackgroundColor(playerid, MasterCard4[playerid], 255);
    PlayerTextDrawFont(playerid, MasterCard4[playerid], 2);
    PlayerTextDrawLetterSize(playerid, MasterCard4[playerid], 1.330000, 2.400000);
    PlayerTextDrawColor(playerid, MasterCard4[playerid], -1);
    PlayerTextDrawSetOutline(playerid, MasterCard4[playerid], 0);
    PlayerTextDrawSetProportional(playerid, MasterCard4[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MasterCard4[playerid], 1);

    MasterCard5[playerid] = CreatePlayerTextDraw(playerid, 365.000000, 217.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, MasterCard5[playerid],  255);
    PlayerTextDrawFont(playerid, MasterCard5[playerid], 1);
    PlayerTextDrawLetterSize(playerid, MasterCard5[playerid], 1.680000, 4.099999);
    PlayerTextDrawColor(playerid, MasterCard5[playerid], -1);
    PlayerTextDrawSetOutline(playerid, MasterCard5[playerid], 0);
    PlayerTextDrawSetProportional(playerid, MasterCard5[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MasterCard5[playerid], 1);
    PlayerTextDrawUseBox(playerid, MasterCard5[playerid], 1);
    PlayerTextDrawBoxColor(playerid, MasterCard5[playerid], -522133920);
    PlayerTextDrawTextSize(playerid, MasterCard5[playerid], 392.000000, -23.000000);

    MasterCard6[playerid] = CreatePlayerTextDraw(playerid, 375.000000, 202.000000, ".");
    PlayerTextDrawBackgroundColor(playerid, MasterCard6[playerid], 255);
    PlayerTextDrawFont(playerid, MasterCard6[playerid], 1);
    PlayerTextDrawLetterSize(playerid, MasterCard6[playerid], 1.470000, 6.600000);
    PlayerTextDrawColor(playerid, MasterCard6[playerid], -7601921);
    PlayerTextDrawSetOutline(playerid, MasterCard6[playerid], 0);
    PlayerTextDrawSetProportional(playerid, MasterCard6[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MasterCard6[playerid], 1);

    MasterCard7[playerid] = CreatePlayerTextDraw(playerid, 364.000000, 202.000000, ".");
    PlayerTextDrawBackgroundColor(playerid, MasterCard7[playerid], 255);
    PlayerTextDrawFont(playerid, MasterCard7[playerid], 1);
    PlayerTextDrawLetterSize(playerid, MasterCard7[playerid], 1.470000, 6.600000);
    PlayerTextDrawColor(playerid, MasterCard7[playerid], -92245249);
    PlayerTextDrawSetOutline(playerid, MasterCard7[playerid], 0);
    PlayerTextDrawSetProportional(playerid, MasterCard7[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MasterCard7[playerid], 1);

    MasterCard8[playerid] = CreatePlayerTextDraw(playerid, 364.000000, 239.000000, "MasterCard");
    PlayerTextDrawBackgroundColor(playerid, MasterCard8[playerid], 255);
    PlayerTextDrawFont(playerid, MasterCard8[playerid], 1);
    PlayerTextDrawLetterSize(playerid, MasterCard8[playerid], 0.139999, 1.400000);
    PlayerTextDrawColor(playerid, MasterCard8[playerid], -4048);
    PlayerTextDrawSetOutline(playerid, MasterCard8[playerid], 0);
    PlayerTextDrawSetProportional(playerid, MasterCard8[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MasterCard8[playerid], 1);

    return 0;
}

public OnPlayerDisconnect(playerid){
    Reset(playerid); // Reseta valores das variбveis, evitando bugs para jogadores que utilizam o ID do antecessor.
    return 1;
}

public OnPlayerKeypadInput(playerid, keypadID, type, key){
    if(keypadID == KeyPad_FimBanco && type == KEYPAD_INPUT_GOOD) {
        format(_Str, sizeof(_Str), "Dados do seu cartгo:\n\nN° Sйrie: %d.%d.%d.%d\nTitular: %s", DOF2_GetInt(ObterCartao(playerid), "SerieCartao1_01"),DOF2_GetInt(ObterCartao(playerid), "SerieCartao2_01"),DOF2_GetInt(ObterCartao(playerid), "SerieCartao3_01"),DOF2_GetInt(ObterCartao(playerid), "SerieCartao4_01"), DOF2_GetString(_Str, "Titular01"));       ShowPlayerDialog(playerid, 922, DIALOG_STYLE_MSGBOX, "Cartгo Visa Assinado!", _Str, "Fechar", "");
        return 1;
    }
    if(keypadID == KeyPad_FimBanco && type == KEYPAD_INPUT_BAD){
            SetTimerEx("ErrouCadastroBanc", 2000, false, "i", playerid);
        return 1;
    }
    return 1;
}

forward ErrouCadastroBanc(playerid);
public ErrouCadastroBanc(playerid){
    SendClientMessage(playerid, -1, "Digite a senha coorretamente, caso errar novamente a conta serб encerrada!");
    ShowPlayerKeypad(playerid, KeyPad_FimBanco, DOF2_GetString(ObterCartao(playerid), "SenhaCartao01"));
    return 1;
}

CMD:teste(playerid){
            VariTemp[playerid] = DOF2_GetInt(ObterCartao(playerid), "VezesParcelando01");

            DOF2_SetInt(ObterCartao(playerid), "VezesParcelando01", VariTemp[playerid] -1);
            DOF2_SaveFile();

                format(_Str, sizeof(_Str), "{BEBEBE}| {FFD700}BANCO {BEBEBE}|{FA8072} Uma parcela de sua compra foi descontada! O Dinheiro serб retirado do banco! ", DOF2_GetInt(ObterCartao(playerid), "VezesParcelando01"));
                SendClientMessage(playerid, -1, _Str);

                format(_Str, sizeof(_Str), "{BEBEBE}| {FFD700}BANCO {BEBEBE}|{FA8072} Restam {BEBEBE}%d {FA8072}parcelas para serem pagas! O Valor pago foi %d,00!", DOF2_GetInt(ObterCartao(playerid), "VezesParcelando01"), DOF2_GetInt(ObterCartao(playerid), "ValorTotal01") / DOF2_GetInt(ObterCartao(playerid), "VezesParcelando01"));
                SendClientMessage(playerid, -1, _Str);
        return 1;
}

CMD:abrirconta(playerid){
    //ShowPlayerKeypad(playerid, DIALOG_Teste, DOF2_GetString(ObterCartao(playerid), "SerieCartao1_01"));
    ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "Abrir Conta!", "clique em fim e digite sa senha na proxima msg!", "Fim", "Sair");
    return 1;
}

CMD:meucartao(playerid){
    ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "Escolher Cartгo!", "Visa\nMaster Card\nCielo\nElo", "Mostrar", "Fechar");
    return 1;
}

CMD:test(playerid){
    new SerieCard1 = random(9000);
    new SerieCard2 = random(8000);
    new SerieCard3 = random(9000);
    new SerieCard4 = random(8000);

    DOF2_SetInt(ObterCartao(playerid), "SerieCartao1_01", SerieCard1);
    DOF2_SetInt(ObterCartao(playerid), "SerieCartao2_01", SerieCard2);
    DOF2_SetInt(ObterCartao(playerid), "SerieCartao3_01", SerieCard3);
    DOF2_SetInt(ObterCartao(playerid), "SerieCartao4_01", SerieCard4);

    DOF2_SaveFile();

    return 1;
}

CMD:assinarcartao(playerid){
    ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Assinar Cartao","Visa\nMaster Card\nCielo\nElo","Assinar","Cancelar");
    return 1;
}

CMD:compraralgo(playerid){ // script test
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Comprar Algo", "Celular Teste\n", "Comprar", "Fechar");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
    if(dialogid == 1){
        if(!response) return 1;
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Comprar Algo", "Б Vista\nParcelado\nDeposito Bancбrio\nInternet Banking\n", "Comprar", "Fechar");
    }
    if(dialogid == 2){
        if(!response) return 1;
        switch(listitem){
            case 0:{
                new VerificMoney = GetPlayerMoney(playerid);

                if(VerificMoney <= PrecoCelu) return SendClientMessage(playerid, -1, "{BEBEBE}| INFO | Vocк nгo tem dinheiro suficiente para pagar б vista. Use outro modo de pagamento!");
                GivePlayerMoney(playerid, VerificMoney-PrecoCelu);
            }
            case 1: {

            ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Selecione o Cartao", "Visa\nMaster Card\nCielo\nElo", "Pagar", "Cancelar");
            }
            case 2:{
            }
            case 3:{
            }

        }
    }
    if(dialogid == 3){
        if(!response) return 1;

        switch(listitem){
            case 0:{
                ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Vezes Parcelado","Digite abaixo o n° de vezes que deseja parcelar. \nMax 12 x.","Prossegir","Fechar");

                }
            }
        }
    if(dialogid == 4){
        if(!response) return 1;

        print("FOII");

        //if(SystemCard[playerid][TemCartao01] == 1){
            VezesParcelado[playerid] = strval(inputtext);

            DOF2_SetInt(ObterCartao(playerid), "Parcelando01", 1);

            DOF2_SetInt(ObterCartao(playerid), "VezesParcelando01", VezesParcelado[playerid]);
            DOF2_SetInt(ObterCartao(playerid), "ValorTotal01", 9000);
            DOF2_SaveFile();

            format(_Str, sizeof(_Str), "Compra finalizada com sucesso!\nSerб descontado cada parcela ao dia automaticamente.\n\nCartao: Visa\nParcelas: %d", VezesParcelado[playerid]);
            ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "Compra Efetuada!",_Str,"Fechar","");
       //   }
    }
    if(dialogid == 6){
        if(!response) return 1;

        switch(listitem){
            case 0: DOF2_SetString(ObterCartao(playerid), "Cartao01", "Visa"), CartaoOption[playerid] = 1, ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Crйdito ou Dйbito?", "Cartгo de Crйdito\nCartгo de Dйbito", "Finalizar", "Sair");
            case 1: DOF2_SetString(ObterCartao(playerid), "Cartao02", "Master Card"), CartaoOption[playerid] = 2, ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Crйdito ou Dйbito?", "Cartгo de Crйdito\nCartгo de Dйbito", "Finalizar", "Sair");//ARRUMAR!
        }
    }
    if(dialogid == 7){
        if(!response) return 1;

        switch(listitem){
            case 0: if(CartaoOption[playerid] == 1){
                new SerieCard1 = random(9000),
                    SerieCard2 = random(8000),
                    SerieCard3 = random(9000),
                    SerieCard4 = random(8000)
                ;
                DOF2_SetInt(ObterCartao(playerid), "TemCartao01", 1);
                DOF2_SetInt(ObterCartao(playerid), "Credito01", 1);

                DOF2_SetInt(ObterCartao(playerid), "SerieCartao1_01", SerieCard1);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao2_01", SerieCard2);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao3_01", SerieCard3);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao4_01", SerieCard4);

                DOF2_SaveFile();
                ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT, "Assinando Cartao", "Digite abaixo o nome do Titular do Cartгo para Finalizar a Assinatura.", "Prosseguir", "Sair");
                }
                else if(CartaoOption[playerid] == 2){
                new SerieCard1 = random(9000),
                    SerieCard2 = random(8000),
                    SerieCard3 = random(9000),
                    SerieCard4 = random(8000)
                ;
                DOF2_SetInt(ObterCartao(playerid), "TemCartao02", 1);
                DOF2_SetInt(ObterCartao(playerid), "Credito02", 1);

                DOF2_SetInt(ObterCartao(playerid), "SerieCartao1_02", SerieCard1);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao2_02", SerieCard2);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao3_02", SerieCard3);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao4_02", SerieCard4);

                DOF2_SaveFile();
                //ShowPlayerDialog(playerid, 11, DIALOG_STYLE_INPUT, "Criar Senha!", "Digite uma senha !", "Finalizar", "Sair");
                }
                else if(CartaoOption[playerid] == 3){
                new SerieCard1 = random(9000),
                    SerieCard2 = random(8000),
                    SerieCard3 = random(9000),
                    SerieCard4 = random(8000)
                ;
                DOF2_SetInt(ObterCartao(playerid), "TemCartao03", 1);
                DOF2_SetInt(ObterCartao(playerid), "Credito03", 1);

                DOF2_SetInt(ObterCartao(playerid), "SerieCartao1_03", SerieCard1);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao2_03", SerieCard2);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao3_03", SerieCard3);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao4_03", SerieCard4);

                DOF2_SaveFile();
                }
                else if(CartaoOption[playerid] == 4){
                new SerieCard1 = random(9000),
                    SerieCard2 = random(8000),
                    SerieCard3 = random(9000),
                    SerieCard4 = random(8000)
                ;
                DOF2_SetInt(ObterCartao(playerid), "TemCartao04", 1);
                DOF2_SetInt(ObterCartao(playerid), "Credito04", 1);

                DOF2_SetInt(ObterCartao(playerid), "SerieCartao1_04", SerieCard1);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao2_04", SerieCard2);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao3_04", SerieCard3);
                DOF2_SetInt(ObterCartao(playerid), "SerieCartao4_04", SerieCard4);

                DOF2_SaveFile();
            }
        }
    }
    if(dialogid == 8){
        if(!response) return 1;

        if(CartaoOption[playerid] == 1){
        DOF2_SetString(ObterCartao(playerid), "Titular01", inputtext);
        DOF2_SaveFile();

        //format(_Str, sizeof(_Str), "Dados do seu cartгo:\n\nN° Sйrie: %d.%d.%d.%d\nTitular: %s", DOF2_GetInt(ObterCartao(playerid), "SerieCartao1_01"),DOF2_GetInt(ObterCartao(playerid), "SerieCartao2_01"),DOF2_GetInt(ObterCartao(playerid), "SerieCartao3_01"),DOF2_GetInt(ObterCartao(playerid), "SerieCartao4_01"), DOF2_GetString(_Str, "Titular01"));
        //ShowPlayerDialog(playerid, 922, DIALOG_STYLE_MSGBOX, "Cartгo Visa Assinado!", _Str, "Fechar", "");

        ShowPlayerDialog(playerid, 11, DIALOG_STYLE_INPUT, "Criar Senha!", "Digite uma senha !", "Finalizar", "Sair");
        }
    }
    if(dialogid == 9){
        if(!response) return 1;

        switch(listitem){
            case 0: return 1;
            case 1: CartaoMasterCard(playerid);
        }
    }
    if(dialogid == 11){
        if(!response) return 1;

        SenhaBanco[playerid] = strval(inputtext);
        DOF2_SetInt(ObterCartao(playerid), "SenhaCartao01", SenhaBanco[playerid]);

        DOF2_SaveFile();
        DOF2_Exit();

        ShowPlayerKeypad(playerid, KeyPad_FimBanco, DOF2_GetString(ObterCartao(playerid), "SenhaCartao01"));

    }
    return 1;
}

CarregarCartao(playerid){

    SystemCard[playerid][Cartao01] = DOF2_GetInt(ObterCartao(playerid), "Cartao01");
    SystemCard[playerid][TemCartao01] = DOF2_GetInt(ObterCartao(playerid), "TemCartao01");
    SystemCard[playerid][Debito01] = DOF2_GetInt(ObterCartao(playerid), "Debito01");
    SystemCard[playerid][Credito01] = DOF2_GetInt(ObterCartao(playerid), "Credito01");
    SystemCard[playerid][Parcelando01] = DOF2_GetInt(ObterCartao(playerid), "Parcelando01");
    SystemCard[playerid][VezesParcelando01] = DOF2_GetInt(ObterCartao(playerid), "VezesParcelando01");
    SystemCard[playerid][SenhaCartao01] = DOF2_GetInt(ObterCartao(playerid), "SenhaCartao01");

    SystemCard[playerid][Cartao02] = DOF2_GetInt(ObterCartao(playerid), "Cartao02");
    SystemCard[playerid][TemCartao02] = DOF2_GetInt(ObterCartao(playerid), "TemCartao02");
    SystemCard[playerid][Debito02] = DOF2_GetInt(ObterCartao(playerid), "Debito02");
    SystemCard[playerid][Credito02] = DOF2_GetInt(ObterCartao(playerid), "Credito02");
    SystemCard[playerid][Parcelando02] = DOF2_GetInt(ObterCartao(playerid), "Parcelando02");
    SystemCard[playerid][VezesParcelado02] = DOF2_GetInt(ObterCartao(playerid), "VezesParcelando02");
    SystemCard[playerid][SenhaCartao02] = DOF2_GetInt(ObterCartao(playerid), "SenhaCartao02");

    SystemCard[playerid][Cartao03] = DOF2_GetInt(ObterCartao(playerid), "Cartao03");
    SystemCard[playerid][TemCartao03] = DOF2_GetInt(ObterCartao(playerid), "TemCartao03");
    SystemCard[playerid][Debito03] = DOF2_GetInt(ObterCartao(playerid), "Debito03");
    SystemCard[playerid][Credito03] = DOF2_GetInt(ObterCartao(playerid), "Credito03");
    SystemCard[playerid][Parcelando03] = DOF2_GetInt(ObterCartao(playerid), "Parcelando03");
    SystemCard[playerid][VezesParcelado03] = DOF2_GetInt(ObterCartao(playerid), "VezesParcelado03");
    SystemCard[playerid][SenhaCartao03] = DOF2_GetInt(ObterCartao(playerid), "SenhaCartao03");

    SystemCard[playerid][Cartao04] = DOF2_GetInt(ObterCartao(playerid), "Cartao04");
    SystemCard[playerid][TemCartao04] = DOF2_GetInt(ObterCartao(playerid), "TemCartao04");
    SystemCard[playerid][Debito04] = DOF2_GetInt(ObterCartao(playerid), "Debito04");
    SystemCard[playerid][Credito04] = DOF2_GetInt(ObterCartao(playerid), "Credito04");
    SystemCard[playerid][Parcelando04] = DOF2_GetInt(ObterCartao(playerid), "Parcelando04");
    SystemCard[playerid][VezesParcelado04] = DOF2_GetInt(ObterCartao(playerid), "VezesParcelado04");
    SystemCard[playerid][SenhaCartao04] = DOF2_GetInt(ObterCartao(playerid), "SenhaCartao04");
}

forward DesParcelando(playerid);
public DesParcelando(playerid){
    print("OKS");
    for(new i=0; i < MAX_PLAYERS; i++){
        //if(!IsPlayerConnected(playerid)) break;

        if(SystemCard[playerid][Parcelando01] == 1){
        print("OKS2 <<<");
            if(SystemCard[playerid][VezesParcelando01] == 0) return DOF2_SetInt(ObterCartao(playerid), "Parcelando01", 0); // Reseta as Parcelas; << @ >>
            VariTemp[playerid] = DOF2_GetInt(ObterCartao(playerid), "VezesParcelando01");

            DOF2_SetInt(ObterCartao(playerid), "VezesParcelando01", VariTemp[playerid] -1);
            DOF2_SaveFile();

        #if DIALOGUSAR == 1
            {
                format(_Str, sizeof(_Str), "{BEBEBE}| {FFD700}BANCO {BEBEBE}|{FA8072} Uma parcela de sua compra foi descontada! O Dinheiro serб retirado do banco! ", DOF2_GetInt(ObterCartao(playerid), "VezesParcelando01"));
                SendClientMessage(playerid, -1, _Str);

                format(_Str, sizeof(_Str), "{BEBEBE}| {FFD700}BANCO {BEBEBE}|{FA8072} Restam {BEBEBE}%d {FA8072}parcelas para serem pagas! O Valor pago foi %d,00!", DOF2_GetInt(ObterCartao(playerid), "VezesParcelando01"), DOF2_GetInt(ObterCartao(playerid), "ValorTotal01") / DOF2_GetInt(ObterCartao(playerid), "VezesParcelando01"));
                SendClientMessage(playerid, -1, _Str);
            }
        #endif
        }
    }
    return 1;
}

Reset(playerid){// Manter essa CallBack ativa; Somente poderб ser utilizada APУS o salvamento dos dados.
    VariTemp[playerid] = 0,
    CartaoOption[playerid] = 0
    ;

}
forward EsconderCartao(playerid);
public EsconderCartao(playerid){
    PlayerTextDrawHide(playerid, MasterCard0[playerid]);
    PlayerTextDrawHide(playerid, MasterCard1[playerid]);
    PlayerTextDrawHide(playerid, MasterCard2[playerid]);
    PlayerTextDrawHide(playerid, MasterCard3[playerid]);
    PlayerTextDrawHide(playerid, MasterCard4[playerid]);
    PlayerTextDrawHide(playerid, MasterCard5[playerid]);
    PlayerTextDrawHide(playerid, MasterCard6[playerid]);
    PlayerTextDrawHide(playerid, MasterCard7[playerid]);
    PlayerTextDrawHide(playerid, MasterCard8[playerid]);

    TogglePlayerControllable(playerid, true);
    return 1;
}

ObterNome(playerid){
    new GetName[26];
    GetPlayerName(playerid, GetName, sizeof(GetName));
    return GetName;
}

ObterCartao(playerid){
    new _Cartao[128];

    format(_Cartao, sizeof(_Cartao), "Cartao de Credito/%s.ini", ObterNome(playerid));
    return _Cartao;
}

CartaoMasterCard(playerid){
    format(_Str, sizeof(_Str), "%d.%d.%d.%d", DOF2_GetInt(ObterCartao(playerid), "SerieCartao1_01"), DOF2_GetInt(ObterCartao(playerid), "SerieCartao2_01"), DOF2_GetInt(ObterCartao(playerid), "SerieCartao3_01"), DOF2_GetInt(ObterCartao(playerid), "SerieCartao4_01"));
    PlayerTextDrawSetString(playerid, MasterCard2[playerid], _Str);

    PlayerTextDrawShow(playerid, MasterCard0[playerid]);
    PlayerTextDrawShow(playerid, MasterCard1[playerid]);
    PlayerTextDrawShow(playerid, MasterCard2[playerid]);
    PlayerTextDrawShow(playerid, MasterCard3[playerid]);
    PlayerTextDrawShow(playerid, MasterCard4[playerid]);
    PlayerTextDrawShow(playerid, MasterCard5[playerid]);
    PlayerTextDrawShow(playerid, MasterCard6[playerid]);
    PlayerTextDrawShow(playerid, MasterCard7[playerid]);
    PlayerTextDrawShow(playerid, MasterCard8[playerid]);

    TogglePlayerControllable(playerid, false);
    SendClientMessage(playerid, -1, "{BEBEBE}| INFO | O Cartгo serб guardado ao bolso em 8 segundos!");

    SetTimerEx("EsconderCartao", 6000, false, "i", playerid);
}
Код:
C:\usuario\franklin\trabalho\bplrpg\filterscripts\cartaodec.pwn(8) : fatal error 100: cannot read from file: "keypad"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Toma ai o Ignorante, O mundo da voltas
Include: download
Reply
#3

Que exagero de variбvel.

pawn Код:
new PlayerText:MasterCard0[MAX_PLAYERS];
new PlayerText:MasterCard1[MAX_PLAYERS];
new PlayerText:MasterCard2[MAX_PLAYERS];
new PlayerText:MasterCard3[MAX_PLAYERS];
new PlayerText:MasterCard4[MAX_PLAYERS];
new PlayerText:MasterCard5[MAX_PLAYERS];
new PlayerText:MasterCard6[MAX_PLAYERS];
new PlayerText:MasterCard7[MAX_PLAYERS];
new PlayerText:MasterCard8[MAX_PLAYERS];

new PlayerText:MasterCard[8][MAX_PLAYERS];
Reply
#4

Quote:
Originally Posted by xCR7
Посмотреть сообщение
Que exagero de variбvel.

pawn Код:
new PlayerText:MasterCard0[MAX_PLAYERS];
new PlayerText:MasterCard1[MAX_PLAYERS];
new PlayerText:MasterCard2[MAX_PLAYERS];
new PlayerText:MasterCard3[MAX_PLAYERS];
new PlayerText:MasterCard4[MAX_PLAYERS];
new PlayerText:MasterCard5[MAX_PLAYERS];
new PlayerText:MasterCard6[MAX_PLAYERS];
new PlayerText:MasterCard7[MAX_PLAYERS];
new PlayerText:MasterCard8[MAX_PLAYERS];

new PlayerText:MasterCard[8][MAX_PLAYERS];
Relaxa xCR7 ele estб usando FS dos outros ;3
Reply
#5

Se eu soubesse criar uma eu criava mais como ainda nгo sei nгo vou criar Sou novato nisso meu deus [BOPE] querendo arrumar briga mel deus ._. vo te dar reputaзгo -.-
Aqui esta o criador da FS
https://sampforum.blast.hk/showthread.php?tid=528064
Reply
#6

Quote:
Originally Posted by paulotuto
Посмотреть сообщение
Se eu soubesse criar uma eu criava mais como ainda nгo sei nгo vou criar Sou novato nisso meu deus [BOPE] querendo arrumar briga mel deus ._. vo te dar reputaзгo -.-
Aqui esta o criador da FS
https://sampforum.blast.hk/showthread.php?tid=528064
Vocк nem pode dar reputaзгo.
Em relaзгo de ser novato, se tiver alguma dъvida й sу usar o search que vocк acha. Procure estudar sobre as funзхes nativas do SA-MP atravйs da Wiki!
Reply
#7

Ok :$ eu so novato mais tem o botгo ali reputation ._. pensei que era so clickar ali *-*
Reply


Forum Jump:


Users browsing this thread: