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