24.12.2013, 09:21
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.
EDIT: strval is used to convert string(inputtext) into integer
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);
}