[solved]Whats wrong with my dialog?
#4

try this ...
pawn Код:
if(dialogid == STORE_DIALOG)
{
if(response == 0)
{
ShowPlayerDialog(playerid,STORE_DIALOG,DIALOG_STYLE_LIST,"24/7 STORE","Chainsaw ($1500)\nFlowers ($5)\nBaseball bat ($100)\nBeer ($20)\nWallet ($1000)\nParachute($500)\nCork($1000)","Choose","Cancel");
}
if(response)
{
if(listitem == 0)
{
if(GetPlayerMoney(playerid) <= 1499) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Chainsaw ($1500)");
return 1;
}
GivePlayerMoney(playerid,-1500);
SendClientMessage(playerid, 0xA9A9A9AA, "|_24/7 Purchase_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Chainsaw. You were charged $1500");
GivePlayerWeapon(playerid,9,1);
return 1;
}
}
return 1;
}
Reply


Messages In This Thread
[solved]Whats wrong with my dialog? - by ruckfules99 - 16.03.2010, 16:49
Re: Whats wrong with my dialog? - by Torran - 16.03.2010, 17:27
Re: Whats wrong with my dialog? - by ruckfules99 - 17.03.2010, 02:46
Re: Whats wrong with my dialog? - by differo - 17.03.2010, 03:23
Re: Whats wrong with my dialog? - by ruckfules99 - 17.03.2010, 03:34
Re: Whats wrong with my dialog? - by differo - 17.03.2010, 03:44
Re: Whats wrong with my dialog? - by ruckfules99 - 17.03.2010, 03:50
Re: Whats wrong with my dialog? - by ruckfules99 - 17.03.2010, 04:03

Forum Jump:


Users browsing this thread: 1 Guest(s)