inputtext.
#1

Код HTML:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_INPUT, "Player ID", "Enter Player ID", "Next", "Exit");
Код HTML:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
    {
		case 10:
		{
		    if(!response)
			{
				if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, -1, "The player not connected.");
			}
			return 1;
		}
	}
	return 1;
}
input text in Dialog: 0
0 = Player ID.
Send me message: "The player not connected.", but the player with 0 ID is connected.
Reply


Messages In This Thread
inputtext. - by Spenker - 28.07.2016, 09:54
Re: inputtext. - by justjamie - 28.07.2016, 10:00
Re: inputtext. - by Spenker - 28.07.2016, 10:25
Re: inputtext. - by Deadpoop - 28.07.2016, 10:30
Re: inputtext. - by Spenker - 28.07.2016, 10:47
Re: inputtext. - by Deadpoop - 28.07.2016, 10:57
Re: inputtext. - by Shinja - 28.07.2016, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)