24.12.2013, 09:18
I'm just trying to make a simple money dialog. A player enters the amount they want, and they get it. But this isn't working. Could I please get some help? Thanks. (I'm returning from a break of sa-mp, so I'm a bit rusty.)
pawn Код:
if(listitem == 4)
{
ShowPlayerDialog(playerid, mamount,DIALOG_STYLE_INPUT, "Money", "How much?", "OK","Cancel");
return 1;
}
}
if(dialogid == mamount)
{
GivePlayerMoney(playerid, inputtext[128]);
return 1;
}