How to use inputtext? (Dialogs.)
#2

This code should work, you don't need to put 128 string cell because, it's already done on the callback as you have noticed.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]/* the [] */)
pawn Код:
new amount = strval( inputtext );
if(listitem == 4)
{
    return ShowPlayerDialog(playerid, mamount,DIALOG_STYLE_INPUT, "Money", "How much?", "OK","Cancel");
}
if(dialogid == mamount)
{
    return GivePlayerMoney(playerid, amount);
}
EDIT: strval is used to convert string(inputtext) into integer
Reply


Messages In This Thread
How to use inputtext? (Dialogs.) - by rangerxxll - 24.12.2013, 09:18
Re: How to use inputtext? (Dialogs.) - by Patrick - 24.12.2013, 09:21
Re: How to use inputtext? (Dialogs.) - by CutX - 24.12.2013, 09:22
Re: How to use inputtext? (Dialogs.) - by rangerxxll - 24.12.2013, 09:32
Re: How to use inputtext? (Dialogs.) - by CutX - 24.12.2013, 09:34
Re: How to use inputtext? (Dialogs.) - by Patrick - 24.12.2013, 09:35
Re: How to use inputtext? (Dialogs.) - by rangerxxll - 24.12.2013, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)