26.06.2015, 12:05
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem,
{
if(dialogid == blablabla)
{
if(response)
{
switch(dialogid)
{
case DIALOG_INPUT:
{
if(response)
{
new userid;
if(sscanf(inputtext,"u",userid)) return ShowPlayerDialog(playerid,DIALOG_INPUT,DIALOG_STYLE_INPUT,"Enter name/userid","Error: Enter the name/userid","OK","Cancel");
Showplayerdialog(userid, Blabla);
}
}
}
return 1;
}
I am typing via phone.