Dialog Input
#2

i assume you already opened the dialog with the input requester, like:
Код:
ShowPlayerDialog(playerid,DIALOG_SENDCASH,DIALOG_STYLE_INPUT,Title,"","Transfer","Cancel");
then you only need to convert the inputtext into an integer:
Код:
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
{
//...
	if(dialogid == DIALOG_SENDCASH)
	{
		new Amount=strval(inputtext);
		SendCash(playerid,TargetID,Amount);
	}
//... other stuff maybe...
}
the strval was what you were looking for, in combination with the inputtext...
Reply


Messages In This Thread
Dialog Input - by TKZ227 - 23.05.2010, 03:01
Re: Dialog Input - by Babul - 23.05.2010, 03:43
Re: Dialog Input - by TKZ227 - 23.05.2010, 04:19
Re: Dialog Input - by Carlton - 23.05.2010, 04:24
Re: Dialog Input - by TKZ227 - 23.05.2010, 04:47
Re: Dialog Input - by Johndaone - 23.05.2010, 04:50
Re: Dialog Input - by Simon - 23.05.2010, 05:29
Re: Dialog Input - by TKZ227 - 29.05.2010, 01:12
Re: Dialog Input - by Miguel - 29.05.2010, 02:07
Re: Dialog Input - by aircombat - 29.05.2010, 07:38

Forum Jump:


Users browsing this thread: 3 Guest(s)