Help | OnDialogResponse
#1

Hello,

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");
And this code in : OnDialogResponse:
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;
}

when i enter to my server and write somthing on dialog form and click enter its dont send
You repilied: *my text*

Why?
Reply


Messages In This Thread
Help | OnDialogResponse - by Daniel13145 - 29.01.2010, 10:23
Re: Help | OnDialogResponse - by cmg4life - 29.01.2010, 10:34
Re: Help | OnDialogResponse - by Daniel13145 - 29.01.2010, 10:40

Forum Jump:


Users browsing this thread: 2 Guest(s)