03.11.2012, 19:32
pawn Код:
ShowPlayerDialog(playerid, 45, DIALOG_STYLE_INPUT, "Caption", "Enter the amount:", "Change", "Cancel");
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 45)
{
if(response)
{
new Float:amount = strval(inputtext);
Gas = amount;
}
}
return 1;
}