29.01.2010, 10:23
Hello,
i'm trying to do DialogResponse on my our server,
I did this code in : OnPlayerConnected:
And this code in : OnDialogResponse:
when i enter to my server and write somthing on dialog form and click enter its dont send
You repilied: *my text*
Why?
i'm trying to do DialogResponse on my our server,
I did this code in : OnPlayerConnected:
Код:
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Write Something","Write Here Something:","Enter","Cancel");
Quote:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 2) { new message[256+1]; format(message, 256, "You replied: %s", inputtext); SendClientMessage(playerid, 0xFFFFFFFF, message); } else { SendClientMessage(playerid, COLOR_RED, "Error"); } return 1; } |
You repilied: *my text*
Why?