11.02.2015, 17:20
Hey, I'd like to ask, how can I subtract money of player for item which player chosen in 59 dialog. Script:
Код:
new const PriceOfItem[] = { 250,450,624,781,944 };
In the other dialog are 6 listitem with Items and timer: SetTimerEx("buy",10000,false,"dd",playerid,PriceOfItem[listitem-1]);
forward buy(playerid,itemprice);
public buy(playerid,itemprice)
{
new string[126];
format(string,122,"Are you sure?\n\nThe item price is - {FFFF00}%d $.",itemprice);
ShowPlayerDialog(playerid,59,DIALOG_STYLE_MSGBOX,"Item price",string,"Buy","Back");
}

