25.11.2011, 15:12
I didnt test this yet, I want to find out if this is going to work or not, if you have 500 dollars or more phone price comes up in green, otherwisde it will come up in red, is the code for it right? Thx
pawn Код:
if(GetPlayerMoney(playerid) >= 500))
{
format(option1,sizeof(option1),"Phone {GREEN}$500");
}
if(GetPlayerMoney(playerid) < 500))
{
format(option1,sizeof(option1),"Phone {RED}$500");
}
format(text,sizoef(text),"%s\n%s",option1,option2);
ShowPlayerDialog(playerid, 247, DIALOG_STYLE_LIST, "Shop:", text, "Buy", "Cancel");