[Ajuda] Erro em OnDialogResponse
#7

agora sim

pawn Код:
#include <a_samp>
#include <HidNat>


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/notebook", cmdtext, true, 0) == 0)
    {
        ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Notebook System - by:Victor_Nascimento", "Compras Online", "Selecionar", "Fazer Logoff");
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {

    switch ( dialogid ) {

        case 3: {

            if ( response ) {

                switch ( listitem ) {

                    case 0: ShowPlayerDialog ( playerid, 4, DIALOG_STYLE_LIST, "Notebook - Compras Online", "Vida\nColete\nArmas", "Selecionar", "Fazer Logoff");
                }
            }
        }
        case 4: {

            if ( response ) {

                switch ( listitem ) {

                    case 0: GivePlayerHealth ( playerid, 100.0 ) ;
                    case 1: GivePlayerArmour ( playerid, 100.0 ) ;
                }
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
Erro em OnDialogResponse - by VictorNascimento - 24.08.2013, 23:31
Re: Erro em OnDialogResponse - by smiiir - 24.08.2013, 23:34
Re: Erro em OnDialogResponse - by [THs]ShadoW - 24.08.2013, 23:34
Re: Erro em OnDialogResponse - by VictorNascimento - 24.08.2013, 23:36
Re: Erro em OnDialogResponse - by smiiir - 24.08.2013, 23:38
Re: Erro em OnDialogResponse - by VictorNascimento - 24.08.2013, 23:38
Re: Erro em OnDialogResponse - by smiiir - 24.08.2013, 23:42
Re: Erro em OnDialogResponse - by VictorNascimento - 24.08.2013, 23:45

Forum Jump:


Users browsing this thread: 1 Guest(s)