[Ajuda] Dialog Imput
#4

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 2812)
    {
        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)
            {
                new Celulas[128];
                new Nome[24];
                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));
            SendClientMessage(playerid, -1, "Doaзгo realizada com sucesso!");
        }
        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)