Idea...
#3

once he types but just add..

Код:
ShowPlayerDialog(playerid,IDOFDIALOG,DIALOG_STYLE_LIST,"Cereal\nMeat\nBeer","Select","Close");
Then go to the dialog public function and add:

Код:
if(dialogid == IDOFDIALOG)
{
if(!response) return 1;
if(listitem == 0)
{
if(GetPlayerMoney(playerid) < price of cereal) return SendClientMessage(playerid,COLOR,"You do not have enough money!");
SendClientMessage(playerid,COLOR,"You bought cereal");
Cereal[playerid] = Cereal[playerid] + 1;
}
}
Reply


Messages In This Thread
Idea... - by aleancuervo - 30.05.2010, 02:31
Re: Idea... - by Kar - 30.05.2010, 02:42
Re: Idea... - by coole210 - 30.05.2010, 02:52

Forum Jump:


Users browsing this thread: 1 Guest(s)