[Ajuda] Dialog Input
#2

pawn Код:
if(strcmp("/abrirdialog", cmdtext, true) == 0)
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, ".:: ID do Player ::.","Insira o ID do Player:","Inserir","Cancelar");
    return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
         new id, Float:pX, Float:pY, Float:pZ;
         id = strval(tmp);
         tmp = strtok(cmdtext, idx);
         GetPlayerPos(id, pX, pY, pZ);
         SetPlayerPos(playerid, pX, pY, pZ+1.0);
    }
    return 1;
}
Assim?
Reply


Messages In This Thread
[Ajuda] Dialog Input - by diretor7 - 11.08.2011, 22:52
Re: [Ajuda] Dialog Input - by Allan Kardec - 11.08.2011, 23:03
Re: [Ajuda] Dialog Input - by diretor7 - 11.08.2011, 23:06
Re: [Ajuda] Dialog Input - by Devastador - 11.08.2011, 23:09
Re: [Ajuda] Dialog Input - by diretor7 - 11.08.2011, 23:11
Re: [Ajuda] Dialog Input - by Devastador - 11.08.2011, 23:12
Re: [Ajuda] Dialog Input - by diretor7 - 11.08.2011, 23:14
Re: [Ajuda] Dialog Input - by Devastador - 11.08.2011, 23:16
Re: [Ajuda] Dialog Input - by Allan Kardec - 11.08.2011, 23:21
Re: [Ajuda] Dialog Input - by Devastador - 11.08.2011, 23:22

Forum Jump:


Users browsing this thread: 1 Guest(s)