Question about checking
#4

pawn Код:
new Money;

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);
    Money = itemprice;
    ShowPlayerDialog(playerid,59,DIALOG_STYLE_MSGBOX,"Item price",string,"Buy","Back");
}

else if(dialogid == 59)
{
    if(response)
    {
        GivePlayerMoney(playerid, Money);
    }
    return 1;  
}
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: 1 Guest(s)