06.02.2010, 19:37
Is there any tutorial on how Dialog input text box's work? i need to add some to my server.
Any link is appreciated.
Any link is appreciated.
if(!strcmp(cmdtext, "/example", true))
{
SendClientMessageToAll(0xDEEE20FF, "Somebody was typed /example");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "HEADER", "TEXT HERE", "OK", "Cancle");
return 1;
}
if(!strcmp(cmdtext, "/example", true))
{
SendClientMessageToAll(0xDEEE20FF, "Somebody was type /example");
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT
, "HEADER", "Put your text downhere", "Ok", "Cancle");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0 && response)
{
switch(listitem)
{
case 0:
{
//do something here
}
}
}
return 1;
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT