[Ajuda] Dialog Imput
#2

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new Celulas[128];
    new Nome[24];
    switch(dialogid) // Definindo o Dialog para da o id.
    {
        case 2812: // o ID Do Nosso Dialog.
        {
            if(response)
            {
                if(!inputtext[0] || strval(inputtext) < 50)  return SendClientMessage(playerid,-1,"Seja Bom, Doк Mais de 50 Reais Para os Necessitбdos.");
                if(strval(inputtext) > 999999)
                {
                    GetPlayerName(playerid, Nome, sizeof(Nome));
                    format(Celulas, 128, "O Player %s Deu Para o Bolsa Famнlia }%i - Isso Sim й Solidariedade. ",Nome, strval(inputtext));
                    SendClientMessageToAll(-1, Celulas);

                }
                GivePlayerMoney(playerid, - strval(inputtext));
               
            }
            return true;
        }
    }
    return true;
}
Reply


Messages In This Thread
[Ajuda] Dialog Imput - by Pedro Bу - 06.01.2012, 04:29
Re: [Ajuda] Dialog Imput - by [O.z]Caroline - 06.01.2012, 04:32
Re: [Ajuda] Dialog Imput - by Pedro Bу - 06.01.2012, 04:39
Re: [Ajuda] Dialog Imput - by [O.z]Caroline - 06.01.2012, 05:40

Forum Jump:


Users browsing this thread: 2 Guest(s)