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");
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");
if(GetPlayerMoney(playerid) >= 500)
{
format(option1,sizeof(option1),"Phone "#GREEN"$500");
}
if(GetPlayerMoney(playerid) < 500) //You also had an extra bracket here.
{
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");
#define RED {FF0000}
funky edit the one you just post, on the first getplayermoney it has another extra
|
error 029: invalid expression, assumed zero
error 017: undefined symbol "option1" error 017: undefined symbol "option1" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line |
if(GetPlayerMoney(playerid) >= 500)
{
format(option1,sizeof(option1),"Phone "#GREEN"$500");
}
if(GetPlayerMoney(playerid) < 500) //You also had an extra bracket here.
{
format(option1,sizeof(option1),"Phone "#RED"$500");
}
format(text,sizeof(text),"%s\n%s",option1,option2);
ShowPlayerDialog(playerid, 247, DIALOG_STYLE_LIST, "Shop:", text, "Buy", "Cancel");
if(GetPlayerMoney(playerid) >= 100)
{
format(option1,sizeof(option1),"Telefon Komurkowy {00FC11}$100");
}
if(GetPlayerMoney(playerid) < 100)
{
format(option1,sizeof(option1),"Telefon Komurkowy {FF0000}$100");
}
if(GetPlayerMoney(playerid) >= 100)
{
format(option2,sizeof(option2),"Telefon Komurkowy {00FC11}$100");
}
if(GetPlayerMoney(playerid) < 100)
{
format(option2,sizeof(option2),"Telefon Komurkowy {FF0000}$100");
}
format(text,sizeof(text),"%s\n%s",option1,option2);
ShowPlayerDialog(playerid, 247, DIALOG_STYLE_LIST, "Sklep:", text, "Kup", "Anuluj");
error 017: undefined symbol "option1" error 017: undefined symbol "option1" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
format(option1,sizeof(option1),"Telefon Komurkowy {00FC11}$100");