Question about checking
#1

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");
}
Reply


Messages In This Thread
Question about checking - by Ectazy - 11.02.2015, 17:20
Re: Question about checking - by Ectazy - 11.02.2015, 17:34
Re: Question about checking - by Ectazy - 12.02.2015, 17:57
Re: Question about checking - by HY - 12.02.2015, 18:01

Forum Jump:


Users browsing this thread: 2 Guest(s)