17.02.2010, 11:25
Shows the dialog, but never sends the client message:
why is that?
Код:
public OnPlayerConnect(playerid) { SendClientMessage(playerid,0xfafafa,"ShowPlayerDialog!"); ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new str[256]; format(str,sizeof(str),"dialogid=%d,response=%d,listitem=%d,inputtext=%s",dialogid, response, listitem, inputtext); SendClientMessage(playerid,0xfafafa,str); return 1; }