how to send cilent message through dialog box
#5

Example:
pawn Код:
new id;
#define DIALOG_TALK 69

CMD:talk(playerid,params[])
{
if(sscanf(params,"u",id)) return SendClientMessage(playerid,-2,"USAGE: /talk [playerid]");
{
ShowPlayerDialog(playerid, DIALOG_TALK, DIALOG_INPUT, "Talk here","Enter your text below!","Send","Cancel");
}
return 1;
}

// Dialog response:
if(dialogid == DIALOG_TALK)
{
if(response)
{
SendClientMessage(id,-2,inputtext);
}
}
Try that, it's untested but should work. You need SSCANF + ZCMD
Reply


Messages In This Thread
how to send cilent message through dialog box - by mittukuttan - 20.01.2013, 12:17
Re: how to send cilent message through dialog box - by Dolby - 20.01.2013, 12:22
Re: how to send cilent message through dialog box - by SilverKiller - 20.01.2013, 12:24
Re: how to send cilent message through dialog box - by V_LOPE - 20.01.2013, 12:24
Re: how to send cilent message through dialog box - by Infinity90 - 20.01.2013, 12:24

Forum Jump:


Users browsing this thread: 1 Guest(s)