16.03.2013, 18:57
Create input dialog. When he click enter and strlen is equal to 0 you just send him message. Like this:
pawn Код:
#define DIALOG_BLA 1
ShowPlayerDialog(playerid,DIALOG_BLA, DIALOG_STYLE_INPUT, "Login", "Bla bla", "Login", "Cancel");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_BLA)
{
if(strlen(inputtext) == 0) return SCM...
//If strlen is more then 0 your code
return 1;
}
return 0;
}